Deleted unwanted code in Player
It isn't the player's role to check whether they can move to a tile, check it beforehands and use the move method from its Entity superclass.
This commit is contained in:
@ -11,7 +11,7 @@ class Map:
|
||||
height: int
|
||||
tiles: list
|
||||
|
||||
def __init__(self, width: int, height: int, tiles: list, entities = []: list):
|
||||
def __init__(self, width: int, height: int, tiles: list, entities = []):
|
||||
self.width = width
|
||||
self.height = height
|
||||
self.tiles = tiles
|
||||
|
Reference in New Issue
Block a user