mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-09 02:05:17 -06:00
fix mob movement
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user