generated from mwc/project_game
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.
24 lines
547 B
Python
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 |