aboutsummaryrefslogtreecommitdiff
path: root/src/pinky.py
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-04-19 02:09:53 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-04-19 02:09:53 +0200
commit6c43e3b3ab77ec0c3c57763178723a50e4dcac52 (patch)
treecbd4ce1a6ce900c1178c25f2dc6760e637aea71c /src/pinky.py
parent5cb37cd7aac7fab72b04061de6dfd5f2f5f254fa (diff)
downloadMacpan-6c43e3b3ab77ec0c3c57763178723a50e4dcac52.tar.xz
Macpan-6c43e3b3ab77ec0c3c57763178723a50e4dcac52.zip
Added the ghost sprites to the game.
Diffstat (limited to 'src/pinky.py')
-rw-r--r--src/pinky.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pinky.py b/src/pinky.py
index b512bb9..f89865d 100644
--- a/src/pinky.py
+++ b/src/pinky.py
@@ -5,8 +5,8 @@ import math
from Ghost import Ghost
class Pinky(Ghost):
- def __init__(self, x, y):
- super().__init__("pink", x, y)
+ def __init__(self, sprite_sheet, x, y):
+ super().__init__(sprite_sheet,"pink", x, y)
@@ -59,7 +59,6 @@ class Pinky(Ghost):
forbidden = 1
new_target = self.get_four_tiles_ahead_of_pacman(target)
- print((target.x, target.y), new_target)
for i in range(len(dx)):
if i != forbidden: