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.
9 lines
265 B
Python
9 lines
265 B
Python
class Wall:
|
|
"""
|
|
A simple wall tile. It just sits on the board and blocks movement.
|
|
"""
|
|
character = "█"
|
|
blocks_movement = True
|
|
def __init__(self, position):
|
|
# position is a tuple (x, y)
|
|
self.position = position |