Compare commits

...

2 Commits

Author SHA1 Message Date
theo@manjaro 506930b67e Fixed pinmiks spawning on pause 2021-10-18 11:42:34 +02:00
theo@manjaro 7c9eb4f6b0 Fixed icon 2021-09-20 17:58:09 +02:00
4 changed files with 7 additions and 6 deletions

View File

@ -20,11 +20,11 @@ pip install pygame
### With Linux/Unix
```bash
pyinstaller --onefile --noconsole launcher.py --add-data "gamedata:gamedata" --icon icon.png
pyinstaller --onefile --noconsole launcher.py --add-data "gamedata:gamedata" --icon=icon.ico
```
### With Windows
```bash
pyinstaller --onefile --noconsole launcher.py --add-data "gamedata;gamedata" --icon icon.png
pyinstaller --onefile --noconsole launcher.py --add-data "gamedata;gamedata" --icon=icon.ico
```

View File

@ -75,10 +75,11 @@ class Manager(BaseObject):
self.game.globals["pause"] = not self.game.globals["pause"]
# Spawning more lemmings
if (self.lives>0 and nblemmings>0):
if self.spawntimer.tick(self.game.dt):
self.game.gameloop.summon(Spawner(self.game,self.tiles,speedmargin=int(self.speedmargin+0.5),skins=self.skins))
self.speedmargin+=self.speedstep
self.spawntimer = self.game.lib.Timer(self.basetime+nblemmings*self.steptime)
if not self.game.globals["pause"]:
if self.spawntimer.tick(self.game.dt):
self.game.gameloop.summon(Spawner(self.game,self.tiles,speedmargin=int(self.speedmargin+0.5),skins=self.skins))
self.speedmargin+=self.speedstep
self.spawntimer = self.game.lib.Timer(self.basetime+nblemmings*self.steptime)
else:
# Game over
if self.endtimer.tick(self.game.dt):

BIN
icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 907 B