Update actors/pacman.py
This commit is contained in:
@@ -15,6 +15,9 @@ class ActorPacman:
|
||||
self.animate_speed = 2
|
||||
self.mouth_closing = False
|
||||
|
||||
def update(self):
|
||||
self.animate()
|
||||
|
||||
def animate(self):
|
||||
if self.mouth_closing:
|
||||
self.mouth_angle_deg -= self.animate_speed
|
||||
@@ -54,8 +57,5 @@ class ActorPacman:
|
||||
angle += math.radians(1)
|
||||
pygame.draw.polygon(self.screen, Colors.Yellow.value, points)
|
||||
|
||||
def move_right(self):
|
||||
pass
|
||||
|
||||
def set_direction(self, dir: PlayerDirection):
|
||||
self.direction = dir
|
Reference in New Issue
Block a user