Added fall zones to level
This commit is contained in:
parent
f21126b136
commit
3c21255bc3
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
[gd_resource type="TileSet" load_steps=2 format=2]
|
||||
[gd_resource type="TileSet" load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Graphics/Tiles/SnowySlopes.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
points = PoolVector2Array( 48, 5, 0, 5, 0, 0, 48, 0 )
|
||||
|
||||
[resource]
|
||||
0/name = "SnowySlopes.png 0"
|
||||
0/texture = ExtResource( 1 )
|
||||
|
@ -311,3 +314,24 @@
|
|||
21/shape_one_way_margin = 0.0
|
||||
21/shapes = [ ]
|
||||
21/z_index = 0
|
||||
22/name = "FallZone"
|
||||
22/texture = ExtResource( 1 )
|
||||
22/tex_offset = Vector2( 0, 0 )
|
||||
22/modulate = Color( 1, 1, 1, 1 )
|
||||
22/region = Rect2( 0, 281, 48, 5 )
|
||||
22/tile_mode = 0
|
||||
22/occluder_offset = Vector2( 0, 0 )
|
||||
22/navigation_offset = Vector2( 0, 0 )
|
||||
22/shape_offset = Vector2( 0, 0 )
|
||||
22/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||
22/shape = SubResource( 1 )
|
||||
22/shape_one_way = false
|
||||
22/shape_one_way_margin = 1.0
|
||||
22/shapes = [ {
|
||||
"autotile_coord": Vector2( 0, 0 ),
|
||||
"one_way": false,
|
||||
"one_way_margin": 1.0,
|
||||
"shape": SubResource( 1 ),
|
||||
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||
} ]
|
||||
22/z_index = 0
|
||||
|
|
Loading…
Reference in New Issue