Added fall zones to level
This commit is contained in:
parent
f21126b136
commit
3c21255bc3
4 changed files with 29 additions and 3 deletions
|
@ -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],
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue