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:
Nicolas Margulies
2020-10-23 16:17:48 +02:00
parent 230a7ec432
commit 7c1c427892
2 changed files with 2 additions and 24 deletions

View File

@ -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