Files
project_game/markers.py
ilmabura 2af3d6c2e7 Last milestone completed
Completed the project. I wanted to replace the player with a penguin, but it didn't fit the maze, so I kept it as an '>'.
It shows where you begin and where you need to go to finish, and each game is a different maze. I thought this was very difficult and i needed to learn how to make a maze, I was not prepared for that.
2025-12-07 16:17:56 -05:00

24 lines
547 B
Python

class StartMarker:
"""
Labels the start of the maze with 's'.
"""
character = "S"
color= "red_on_white"
blocks_movement = False
def __init__(self, position):
# position is a tuple (x, y)
self.position = position
class FinishMarker:
"""
Labels the finish of the maze with 'f'.
"""
character = "F"
color = "red_on_black"
blocks_movement = False
def __init__(self, position):
# position is a tuple (x, y)
self.position = position