Fix sea being not collidable
Player can't walk over sea
This commit is contained in:
parent
1255ab8e16
commit
08d425b938
@ -98,6 +98,7 @@ class Map:
|
|||||||
elif tile == 'x':
|
elif tile == 'x':
|
||||||
object = TerrainTile(col, row, 'water.png', self.tileSize, 0)
|
object = TerrainTile(col, row, 'water.png', self.tileSize, 0)
|
||||||
self.screen.draw(object, Locations.MAP, 0, 0)
|
self.screen.draw(object, Locations.MAP, 0, 0)
|
||||||
|
self.collidables.add(object)
|
||||||
elif tile == 'w':
|
elif tile == 'w':
|
||||||
object = TerrainTile(col, row, 'wall.png', self.tileSize, 0)
|
object = TerrainTile(col, row, 'wall.png', self.tileSize, 0)
|
||||||
self.screen.draw(object, Locations.MAP, 0, 0)
|
self.screen.draw(object, Locations.MAP, 0, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user