Added pacman movement. /JL

This commit is contained in:
2025-04-19 13:05:20 +02:00
parent ffa7ba0db3
commit bd5d7da84e
4 changed files with 39 additions and 25 deletions

View File

@@ -36,6 +36,7 @@ class Maze:
self.power_pellets.add((x, y))
elif char == "P":
self.pacman_start = (x * TILE_SIZE + TILE_SIZE // 2, y * TILE_SIZE + TILE_SIZE // 2 + 32)
self.pacman_location = (x, y)
def draw(self, screen):
for y, row in enumerate(self.layout):