Merge pull request 'Update pman.py' (#18) from lerking-patch-1 into main

Reviewed-on: https://gitpot-lerking.servehttp.com/CodingPirates/PyGame-Pacman/pulls/18
This commit was merged in pull request #18.
This commit is contained in:
2025-04-19 10:20:00 +02:00

View File

@@ -6,7 +6,7 @@ from actors.ghost_mode_controller import GhostModeController
from hud import HUD
from maze import Maze
__version__ = "0.2.5"
__version__ = "0.2.6"
def spawn_ghosts(center_position):
@@ -38,7 +38,7 @@ def main() -> None:
hud = HUD(screen_width, screen_height, cherry_image=cherry_img)
maze = Maze("maze/pacman_maze.txt")
player = ActorPacman(screen, center=maze.pacman_start)
player = ActorPacman(screen, center=maze.pacman_start, start_location=maze.pacman_location)
ghost_mode_controller = GhostModeController()
ghost_home_center = (screen_width // 2, (screen_height) // 2)
ghosts = spawn_ghosts(ghost_home_center)