projects
/
tabakrolletjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Actually end the night on timeout. Also end the night if Boyd dies out
[tabakrolletjie.git]
/
tabakrolletjie
/
enemies.py
diff --git
a/tabakrolletjie/enemies.py
b/tabakrolletjie/enemies.py
index 59151d561d40bad83cc7a1711acb5c3339addc2c..80a0776ee4736ac63ab55c13144c7c00df226c54 100644
(file)
--- a/
tabakrolletjie/enemies.py
+++ b/
tabakrolletjie/enemies.py
@@
-26,7
+26,7
@@
MAX_AGE = 60
MAX_ELEMENTS = 400
MAX_HEALTH = 100
MAX_ELEMENTS = 400
MAX_HEALTH = 100
-MOULD_STAGES = [1
0, 20
]
+MOULD_STAGES = [1
5, 25
]
class Mould(pymunk.Body):
class Mould(pymunk.Body):
@@
-186,3
+186,6
@@
class Boyd(object):
def render(self, surface):
"""Draw ourselves"""
surface.blit(self._image, (0, 0), None, 0)
def render(self, surface):
"""Draw ourselves"""
surface.blit(self._image, (0, 0), None, 0)
+
+ def alive(self):
+ return len(self._moulds) > 0