just access the public sprite instead

This commit is contained in:
Xevion
2020-04-19 23:48:56 -05:00
parent 54bf86f2c7
commit 6b26ac5f0d
2 changed files with 2 additions and 5 deletions

View File

@@ -59,8 +59,8 @@ class Game(arcade.Window):
# Create monsters # Create monsters
self.enemy_list.extend([ self.enemy_list.extend([
Enemy(Sprites.GHOST, 200, 200).get_enemy(), Enemy(Sprites.GHOST, 200, 200).sprite,
Enemy(Sprites.FROG, 200, 1000).get_enemy() Enemy(Sprites.FROG, 200, 1000).sprite
]) ])
# Create the 'physics engine' # Create the 'physics engine'

View File

@@ -58,9 +58,6 @@ class Enemy(Mob):
def __init__(self, *args, **kwargs) -> None: def __init__(self, *args, **kwargs) -> None:
super(Enemy, self).__init__(*args, **kwargs) super(Enemy, self).__init__(*args, **kwargs)
def get_enemy(self):
return self.sprite
def tick(self) -> None: def tick(self) -> None:
""" """
A on_update function, the Enemy Mob should scan for the player, decide how to path to it, and A on_update function, the Enemy Mob should scan for the player, decide how to path to it, and