diff options
| author | Moisis <moisis.george@yahoo.com> | 2023-05-19 23:41:23 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-19 23:41:23 +0300 |
| commit | 271af3b2b85ac05aa8061cef0f35e7540f90b778 (patch) | |
| tree | a0475e1d88be01716e76f2e75c495a4284290bb9 /src/pinky.py | |
| parent | 8eeb31dba61e8c9b29704c5988f95dcba4338fca (diff) | |
| parent | 6a351ed2d6a554ed6d338abba234527705d1040f (diff) | |
| download | Macpan-master.tar.xz Macpan-master.zip | |
Final Touches
Diffstat (limited to 'src/pinky.py')
| -rw-r--r-- | src/pinky.py | 6 |
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) |
