Made the entities optional when creating maps

This commit is contained in:
Nicolas Margulies 2020-10-23 14:42:46 +02:00
parent dd88782a4c
commit 7a2e1173d9

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 = []: list):
self.width = width
self.height = height
self.tiles = tiles