comparison skaapsteker/sprites/enemies.py @ 632:0675f390653c

Initial port to Python 3 and Pygame 2.
author Simon Cross <hodgestar@gmail.com>
date Fri, 20 Jan 2023 20:01:06 +0100
parents b7f912705adb
children
comparison
equal deleted inserted replaced
631:672e6e7ecfe9 632:0675f390653c
1 from base import Monster, PatrollingMonster 1 from .base import Monster, PatrollingMonster
2 from pygame import transform 2 from pygame import transform
3 3
4 4
5 class RedOni(Monster): 5 class RedOni(Monster):
6 image_dir = 'sprites/oni red' 6 image_dir = 'sprites/oni red'
73 def change_facing(self): 73 def change_facing(self):
74 if self.heading == 'up': 74 if self.heading == 'up':
75 self.heading = 'down' 75 self.heading = 'down'
76 else: 76 else:
77 self.heading = 'up' 77 self.heading = 'up'
78
79