From e2be9da9bba28431ac73d581d35ab4794fcb9b2f Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Mon, 13 Sep 2021 13:13:38 +0200 Subject: [PATCH] Adjustements --- gamedata/objects/ingame/manager.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gamedata/objects/ingame/manager.py b/gamedata/objects/ingame/manager.py index 09d7e01..7f79e58 100644 --- a/gamedata/objects/ingame/manager.py +++ b/gamedata/objects/ingame/manager.py @@ -9,12 +9,12 @@ class Manager(BaseObject): self.lives = 5 self.basetime = 10 self.steptime = 2 - self.speedmargin = 6 - self.stepmargin = 0.4 + self.speedmargin = 7 + self.stepmargin = 2 self.spawntimer = game.lib.Timer(self.basetime) # Time elapsing each lemming spawn self.deathtimer = game.lib.Timer(1) # Time betwin each life loss self.invincible = False - self.scoreratio = 0.4 # Points earned per seconds and per lemming + self.scoreratio = 0.2 # Points earned per seconds and per lemming # Summon the tiles self.tiles = Tiles(50,50,game) @@ -31,9 +31,7 @@ class Manager(BaseObject): # Spawning more lemmings if self.lives>0 and nblemmings>0 and self.spawntimer.tick(self.game.dt): self.game.gameloop.summon(Spawner(self.game,self.tiles,speedmargin=int(self.speedmargin+0.5))) - self.basetime+=self.steptime - self.spawntimer = self.game.lib.Timer(self.basetime) - self.speedmargin+=self.stepmargin + self.spawntimer = self.game.lib.Timer(self.basetime+nblemmings*self.steptime) if self.invincible: if self.deathtimer.tick(self.game.dt): @@ -43,6 +41,8 @@ class Manager(BaseObject): if not self.invincible: self.lives-=1 self.invincible = True + else: + self.deathtimer.tick(self.deathtimer.getmax()/3) def draw(self): pass