adding pacman animation
This commit is contained in:
parent
bfdbe0078c
commit
a8e057cf93
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue