adding pacman animation

This commit is contained in:
jposada2020 2025-02-09 22:48:07 -05:00
parent bfdbe0078c
commit a8e057cf93

View file

@ -104,10 +104,7 @@ class Pacman(Animation):
pixel_list[self.pacman[1] + self.black_dir] = BLACK pixel_list[self.pacman[1] + self.black_dir] = BLACK
self.pacman[1] += self.direction self.pacman[1] += self.direction
if ( if self.ghosts[3][1] <= self.start_blinking_ghosts and self.direction == -1:
self.ghosts[3][1] <= self.start_blinking_ghosts
and self.direction == -1
):
if self.flag == "beep": if self.flag == "beep":
for i, ghost in enumerate(self.ghosts): for i, ghost in enumerate(self.ghosts):
ghost[0] = BLACK ghost[0] = BLACK