Collisions are working
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user