This commit is contained in:
Yohann D'ANELLO
2020-11-06 21:15:09 +01:00
parent 2e667cdebe
commit 0bd26a1bd0
5 changed files with 54 additions and 31 deletions

View File

@ -12,8 +12,10 @@ class Map:
width: int
height: int
tiles: list
currentx : int #coordinates of the point that should be on the topleft corner of the screen
currenty : int
# coordinates of the point that should be
# on the topleft corner of the screen
currentx: int
currenty: int
def __init__(self, width: int, height: int, tiles: list):
self.width = width
@ -88,7 +90,7 @@ class Tile(Enum):
class Entity:
y: int
x: int
name : str
name: str
map: Map
def __init__(self):