Compare commits
2 Commits
25e06de9ad
...
506930b67e
Author | SHA1 | Date | |
---|---|---|---|
506930b67e | |||
7c9eb4f6b0 |
@ -20,11 +20,11 @@ pip install pygame
|
|||||||
### With Linux/Unix
|
### With Linux/Unix
|
||||||
|
|
||||||
```bash
|
```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
|
### With Windows
|
||||||
|
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
||||||
|
@ -75,10 +75,11 @@ class Manager(BaseObject):
|
|||||||
self.game.globals["pause"] = not self.game.globals["pause"]
|
self.game.globals["pause"] = not self.game.globals["pause"]
|
||||||
# Spawning more lemmings
|
# Spawning more lemmings
|
||||||
if (self.lives>0 and nblemmings>0):
|
if (self.lives>0 and nblemmings>0):
|
||||||
if self.spawntimer.tick(self.game.dt):
|
if not self.game.globals["pause"]:
|
||||||
self.game.gameloop.summon(Spawner(self.game,self.tiles,speedmargin=int(self.speedmargin+0.5),skins=self.skins))
|
if self.spawntimer.tick(self.game.dt):
|
||||||
self.speedmargin+=self.speedstep
|
self.game.gameloop.summon(Spawner(self.game,self.tiles,speedmargin=int(self.speedmargin+0.5),skins=self.skins))
|
||||||
self.spawntimer = self.game.lib.Timer(self.basetime+nblemmings*self.steptime)
|
self.speedmargin+=self.speedstep
|
||||||
|
self.spawntimer = self.game.lib.Timer(self.basetime+nblemmings*self.steptime)
|
||||||
else:
|
else:
|
||||||
# Game over
|
# Game over
|
||||||
if self.endtimer.tick(self.game.dt):
|
if self.endtimer.tick(self.game.dt):
|
||||||
|
Loading…
Reference in New Issue
Block a user