mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-15 04:10:00 -06:00
Moved all mob update code from main to MobHandler
This commit is contained in:
@@ -51,6 +51,10 @@ class MobHandler(arcade.SpriteList):
|
||||
self.enemy_list.draw()
|
||||
|
||||
def update(self) -> None:
|
||||
#update player
|
||||
self.player.monster_collisions.update()
|
||||
self.player.update_animation()
|
||||
|
||||
# Enemy activation and update
|
||||
for enemy in reversed(self.enemy_list):
|
||||
# TODO replace with distance checking
|
||||
@@ -172,6 +176,8 @@ class Player(Mob):
|
||||
"""
|
||||
|
||||
|
||||
|
||||
|
||||
class Enemy(Mob):
|
||||
"""
|
||||
Represents an Enemy Mob.
|
||||
|
||||
Reference in New Issue
Block a user