generated from mwc/project_game
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.
This commit is contained in:
24
markers.py
Normal file
24
markers.py
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
Reference in New Issue
Block a user