diff --git a/gamedata/assets/lemmings/falling.png b/gamedata/assets/lemmings/falling.png new file mode 100644 index 0000000..f510f78 Binary files /dev/null and b/gamedata/assets/lemmings/falling.png differ diff --git a/gamedata/objects/ingame/spawner.py b/gamedata/objects/ingame/spawner.py index f9f5bc5..bcfe6a3 100644 --- a/gamedata/objects/ingame/spawner.py +++ b/gamedata/objects/ingame/spawner.py @@ -9,7 +9,7 @@ class Spawner(BaseObject): super().__init__(spawnpoint[0],spawnpoint[1],game) self.sprite = game.sprite_lib["lemmings/shadow.png"] self.speedmargin = speedmargin - self.fallsprite = game.sprite_lib["lemmings/Right/0.png"] + self.fallsprite = game.sprite_lib["lemmings/falling.png"] self.distance = game.DISPLAY_HEIGHT self.timer = game.lib.Timer(3) # Seconds of telegraph before spawning the lemming @@ -23,10 +23,11 @@ class Spawner(BaseObject): self.game.globals["scameray"]+=3 def draw(self): - # Display the lemming falling - currentdistance = self.distance*self.timer.getratio()**2 - self.game.lib.drawcenter(self.game,self.fallsprite,self.rect[0]-self.game.globals["camerax"],self.rect[1]-currentdistance-self.game.globals["cameray"]) - # Draw the shadow 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 + currentdistance = self.distance*self.timer.getratio()**0.9 + self.game.lib.drawcenter(self.game,self.fallsprite,self.rect[0]-self.game.globals["camerax"],self.rect[1]-currentdistance-self.game.globals["cameray"]) + +