aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-04-15 23:54:49 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-04-15 23:54:49 +0200
commitbfc23fe2998b07a12095ba70505fa5fd63553f9e (patch)
tree0d3ad7b112f5696bd48614cd461bde3e83cfb23a
parent09ccc0d57bf47854d52fcabdc51db83a8ef8fa62 (diff)
downloadMacpan-bfc23fe2998b07a12095ba70505fa5fd63553f9e.tar.xz
Macpan-bfc23fe2998b07a12095ba70505fa5fd63553f9e.zip
Changed the intial position of pacman
-rw-r--r--src/Ghost.py7
-rw-r--r--src/Player.py4
2 files changed, 9 insertions, 2 deletions
diff --git a/src/Ghost.py b/src/Ghost.py
new file mode 100644
index 0000000..33086a1
--- /dev/null
+++ b/src/Ghost.py
@@ -0,0 +1,7 @@
+class Ghost():
+ def __init__(self):
+ self.x = None
+ self.y = None
+
+ # def heuristic(self):
+
diff --git a/src/Player.py b/src/Player.py
index 76dfe19..eac2d62 100644
--- a/src/Player.py
+++ b/src/Player.py
@@ -30,8 +30,8 @@ def get_sprites(sprite_sheet) -> List:
class Player():
def __init__(self, sprite_sheet):
- self.x = 75
- self.y = 75
+ self.x = 30 * 17 - 15
+ self.y = 30 * 25 - 15
self.sprite = get_sprites(sprite_sheet)
self.speed = 5
self.direction = DIRECTION.LEFT