Added monster collisions

This commit is contained in:
Cameron Smart
2020-04-22 23:46:38 -07:00
parent 21ba3c73cf
commit 8db7fcc0ae

View File

@@ -295,7 +295,8 @@ class Game(arcade.Window):
self.enemy_list.remove(enemy) self.enemy_list.remove(enemy)
try: try:
for enemy in self.active_enemies: for enemy in self.active_enemies:
enemy.update() monster_collisions = arcade.PhysicsEngineSimple(enemy, self.active_enemies)
monster_collisions.update()
path = enemy.get_path() path = enemy.get_path()
enemy.tick(path) enemy.tick(path)
except Exception: except Exception: