mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-10 14:05:25 -06:00
just access the public sprite instead
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user