Collisions are working

This commit is contained in:
Yohann D'ANELLO
2020-11-06 17:59:19 +01:00
parent 8641e7d13d
commit 54bb2d1416
4 changed files with 25 additions and 12 deletions

View File

@ -23,7 +23,7 @@ class Game:
m = Map.load("example_map.txt")
player = Player()
self.player = player
m.entities.append(player)
m.add_entity(player)
player.move(1, 6)
d = MapDisplay(m, player)
while True:
@ -43,4 +43,3 @@ class Game:
self.player.move_left()
if key == 'd' or key == 'KEY_RIGHT':
self.player.move_right()