aboutsummaryrefslogtreecommitdiff
path: root/src/Game.py
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-04-16 17:49:50 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-04-16 17:49:50 +0200
commit3634fcc4f9f62d40ea03ba890a3290e05ed20ed8 (patch)
tree5983f58f8512ca7386932a1549302d3e9fd7f3ba /src/Game.py
parentfd985ac6bc684cdbe89e2c93ea098419977a01f5 (diff)
downloadMacpan-3634fcc4f9f62d40ea03ba890a3290e05ed20ed8.tar.xz
Macpan-3634fcc4f9f62d40ea03ba890a3290e05ed20ed8.zip
Added all ghosts with A* search for now
Diffstat (limited to 'src/Game.py')
-rw-r--r--src/Game.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Game.py b/src/Game.py
index 19901a6..e4784c9 100644
--- a/src/Game.py
+++ b/src/Game.py
@@ -25,10 +25,10 @@ class Game():
'../assets/pacman_left_sprite.png').convert_alpha()
player = Player.Player(sprite_sheet)
- inky = Ghost.Ghost("green", 75, 75)
- pinky = Ghost.Ghost("cyan", 27 * 30, 30 * 30 + 15)
- clyde = Ghost.Ghost("red", 27 * 30 + 15, 75)
- winky = Ghost.Ghost("purple", 75, 30 * 30 + 15)
+ blinky = Ghost.Ghost("red", 75, 75)
+ pinky = Ghost.Ghost("pink", 27 * 30, 30 * 30 + 15)
+ inky = Ghost.Ghost("orange", 75, 30 * 30 + 15)
+ clyde = Ghost.Ghost("cyan", 27 * 30 + 15, 75)
# Set the pacman velocity
dx = 0
@@ -152,15 +152,15 @@ class Game():
player.y += dy
- inky.move(maze.maze, (player.x, player.y))
+ blinky.move(maze.maze, (player.x, player.y))
pinky.move(maze.maze, (player.x, player.y))
- winky.move(maze.maze, (player.x, player.y))
+ inky.move(maze.maze, (player.x, player.y))
clyde.move(maze.maze, (player.x, player.y))
maze.draw_map(screen)
player.draw(screen, counter)
- inky.draw(screen)
+ blinky.draw(screen)
pinky.draw(screen)
- winky.draw(screen)
+ inky.draw(screen)
clyde.draw(screen)
# Update the screen