From 3634fcc4f9f62d40ea03ba890a3290e05ed20ed8 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Sun, 16 Apr 2023 17:49:50 +0200 Subject: Added all ghosts with A* search for now --- src/Game.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/Game.py') 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 -- cgit v1.2.3