The shadows fade in
This commit is contained in:
parent
12ba5d9107
commit
4945594a6f
@ -30,6 +30,11 @@ class Spawner(BaseObject):
|
||||
|
||||
def draw(self):
|
||||
# Draw the shadow
|
||||
alphavalue = 1-self.timer.getratio()
|
||||
alphamax = 0.5
|
||||
alphavalue/=alphamax
|
||||
alphavalue = min(1,alphavalue)*255
|
||||
self.sprite.set_alpha(alphavalue)
|
||||
self.game.lib.drawcenter(self.game,self.sprite,self.rect[0]-self.game.globals["camerax"],self.rect[1]-self.game.globals["cameray"])
|
||||
|
||||
# Display the lemming falling
|
||||
|
Loading…
Reference in New Issue
Block a user