Permalink
Browse files

Enemy path is now at least generated, even if they don't move.

  • Loading branch information...
dfloer committed Nov 23, 2018
1 parent 06b4dc2 commit c70428da02430c89cec4216b31f3e9f9e2924596
Showing with 2 additions and 7 deletions.
  1. +2 −7 cocos2d.py
@@ -1283,14 +1283,9 @@ def move_enemies(self):
Right now, it'll head for the closest network connection or building.
"""
for e in self.enemies.values():
print(e)
if e.move_path is [] and e.target != e.position:
print(e)
# Todo: Figure out why this is ever None. It shouldn't be.
if e.move_path in ([], None) and e.target != e.position:
self.find_target(e)
print(e)
else:
pass
print(e)
def find_target(self, enemy):
"""

0 comments on commit c70428d

Please sign in to comment.