Added fall zones to level

This commit is contained in:
gemdude46 2023-01-28 09:39:00 +00:00
parent f21126b136
commit 3c21255bc3
4 changed files with 29 additions and 3 deletions

View file

@ -174,6 +174,7 @@ const TILE_SET_MAP_ELEMS = {
MapElemType.SMALL_SLOPE_RIGHT_1: [14, 18],
MapElemType.SMALL_SLOPE_RIGHT_2: [16, 20],
MapElemType.LEDGE: [],
MapElemType.OOB_LOWER: [22],
},
}

View file

@ -152,7 +152,7 @@ func oob_lower():
var tilemap : TileMap = get_node("../Stage")
var tile : Vector2 = pos.floor()
tile.y *= -1
while tilemap.get_cellv(tile) == 23 or tilemap.get_cellv(tile) < 0:
while tilemap.get_cellv(tile) == 22 or tilemap.get_cellv(tile) < 0:
tile += Vector2.RIGHT
while tilemap.get_cellv(tile) >= 0:
tile += Vector2.UP