diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-05-08 23:02:03 +0300 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-05-08 23:02:03 +0300 |
| commit | aaf0194f9b5d93bd6612bc0b419c4b8f89b4aa21 (patch) | |
| tree | 5c8950e0cb7adb4782e35bb26a0aa8242ea71398 /src/pinky.py | |
| parent | 241e41892a10d3913c63935a8f9e14306e8a73cd (diff) | |
| download | Macpan-aaf0194f9b5d93bd6612bc0b419c4b8f89b4aa21.tar.xz Macpan-aaf0194f9b5d93bd6612bc0b419c4b8f89b4aa21.zip | |
Added a simple Wining screen when the user collects all the food
Diffstat (limited to 'src/pinky.py')
| -rw-r--r-- | src/pinky.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pinky.py b/src/pinky.py index be9e5dc..5f58f54 100644 --- a/src/pinky.py +++ b/src/pinky.py @@ -43,6 +43,10 @@ class Pinky(Ghost): return (27 * 30 + 15, 30 * 30 + 15) @override + def get_intial_tile(self): + return (11 * 30 + 15, 12 * 30 + 15) + + @override def get_next_move(self, game_state, screen): default_tile = self.get_default_tile() @@ -65,11 +69,6 @@ class Pinky(Ghost): rand_pos = (0, 0) new_target = self.get_four_tiles_ahead_of_pacman(game_state.pacman) - if settings.debug: - pygame.draw.circle(screen, self.color, - (new_target[0], new_target[1]), 15) - pygame.draw.circle(screen, self.color, - default_tile, 15) if game_state.pacman.powerup: self.mode = MODE.FRIGHETENED |
