fix mob movement

This commit is contained in:
Xevion
2020-04-21 18:44:54 -05:00
parent 9b133749af
commit 3d5b0f636c
3 changed files with 20 additions and 11 deletions

View File

@@ -186,6 +186,10 @@ class Game(arcade.Window):
"""
Called whenever the mouse is clicked.
"""
for mob in self.enemy_list:
mob.center_x, mob.center_y = random.choice(self.dungeon.levelList).center()
# Create a bullet TEMP SPRITE, currently wielding frog slingshot
bullet = Temp()
# Position the bullet at the player's current location
@@ -259,6 +263,8 @@ class Game(arcade.Window):
self.view_bottom,
Config.SCREEN_HEIGHT + self.view_bottom)
self.enemy_list.update()
# Projectile updates
self.bullet_list.update()
for bullet in self.bullet_list: