mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-06 09:13:12 -06:00
Added monster collisions
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user