aboutsummaryrefslogtreecommitdiff
path: root/src/inky.py
diff options
context:
space:
mode:
authorMoisis <moisis.george@yahoo.com>2023-05-19 23:41:23 +0300
committerGitHub <noreply@github.com>2023-05-19 23:41:23 +0300
commit271af3b2b85ac05aa8061cef0f35e7540f90b778 (patch)
treea0475e1d88be01716e76f2e75c495a4284290bb9 /src/inky.py
parent8eeb31dba61e8c9b29704c5988f95dcba4338fca (diff)
parent6a351ed2d6a554ed6d338abba234527705d1040f (diff)
downloadMacpan-271af3b2b85ac05aa8061cef0f35e7540f90b778.tar.xz
Macpan-271af3b2b85ac05aa8061cef0f35e7540f90b778.zip
Merge pull request #7 from omagdy7/FinalMISOHEADmaster
Final Touches
Diffstat (limited to 'src/inky.py')
-rw-r--r--src/inky.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inky.py b/src/inky.py
index be2e62c..e75b379 100644
--- a/src/inky.py
+++ b/src/inky.py
@@ -9,8 +9,8 @@ from ghost import Ghost
class Inky(Ghost):
- def __init__(self, sprite_sheet, x, y):
- super().__init__(sprite_sheet, "orange", x, y)
+ def __init__(self, sprite_sheet, x, y,settings):
+ super().__init__(sprite_sheet, "orange", x, y,settings)
def get_intermediate_tile(self, pacman):
if pacman.direction == DIRECTION.UP:
@@ -83,7 +83,7 @@ class Inky(Ghost):
if game_state.pacman.powerup is False and self.mode == MODE.FRIGHETENED:
self.mode = MODE.CHASING
- if settings.debug:
+ if self.settings.debug:
pygame.draw.line(screen, self.color, (target),
(self.x, self.y), 1)