Update maze.py
This commit is contained in:
1
maze.py
1
maze.py
@@ -36,6 +36,7 @@ class Maze:
|
|||||||
self.power_pellets.add((x, y))
|
self.power_pellets.add((x, y))
|
||||||
elif char == "P":
|
elif char == "P":
|
||||||
self.pacman_start = (x * TILE_SIZE + TILE_SIZE // 2, y * TILE_SIZE + TILE_SIZE // 2 + 32)
|
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):
|
def draw(self, screen):
|
||||||
for y, row in enumerate(self.layout):
|
for y, row in enumerate(self.layout):
|
||||||
|
Reference in New Issue
Block a user