aboutsummaryrefslogtreecommitdiff
path: root/src/pinky.py
diff options
context:
space:
mode:
authorMoisis <moisis.george@yahoo.com>2023-05-17 14:04:38 +0300
committerMoisis <moisis.george@yahoo.com>2023-05-17 14:04:38 +0300
commit3d7e3d1eba26cc57b31337b0708fce3747f8a988 (patch)
treee9f47e18b3a6365ca383a6da0cbbc424e8b6d3fd /src/pinky.py
parent8eeb31dba61e8c9b29704c5988f95dcba4338fca (diff)
downloadMacpan-3d7e3d1eba26cc57b31337b0708fce3747f8a988.tar.xz
Macpan-3d7e3d1eba26cc57b31337b0708fce3747f8a988.zip
Improved GUI
Settings added (Debug , Sound) SoundSystem added (Become sometimes laggy)
Diffstat (limited to 'src/pinky.py')
-rw-r--r--src/pinky.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pinky.py b/src/pinky.py
index bb50c5b..e02fbaa 100644
--- a/src/pinky.py
+++ b/src/pinky.py
@@ -9,8 +9,8 @@ from ghost import Ghost
class Pinky(Ghost):
- def __init__(self, sprite_sheet, x, y):
- super().__init__(sprite_sheet, "pink", x, y)
+ def __init__(self, sprite_sheet, x, y,settings):
+ super().__init__(sprite_sheet, "pink", x, y,settings)
def get_four_tiles_ahead_of_pacman(self, pacman):
if pacman.direction == DIRECTION.UP:
@@ -95,7 +95,7 @@ class Pinky(Ghost):
pos = self.get_intial_tile()
self.x = pos[0]
self.y = pos[1]
- if settings.debug:
+ if self.settings.debug:
pygame.draw.line(screen, self.color, (new_target),
(self.x, self.y), 1)