water tiles given collision (fixes #57)
This commit is contained in:
parent
d802ce13b7
commit
d6325999ae
1 changed files with 41 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
[gd_resource type="TileSet" load_steps=6 format=2]
|
[gd_resource type="TileSet" load_steps=8 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://graphics/tiles/water.tres" type="Texture" id=1]
|
[ext_resource path="res://graphics/tiles/water.tres" type="Texture" id=1]
|
||||||
[ext_resource path="res://graphics/tiles/spike.png" type="Texture" id=2]
|
[ext_resource path="res://graphics/tiles/spike.png" type="Texture" id=2]
|
||||||
|
@ -10,6 +10,12 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
|
||||||
[sub_resource type="ConvexPolygonShape2D" id=2]
|
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||||
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
|
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=3]
|
||||||
|
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=4]
|
||||||
|
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
0/name = "water.tres 0"
|
0/name = "water.tres 0"
|
||||||
0/texture = ExtResource( 1 )
|
0/texture = ExtResource( 1 )
|
||||||
|
@ -88,3 +94,37 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
|
||||||
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
} ]
|
} ]
|
||||||
3/z_index = 10
|
3/z_index = 10
|
||||||
|
4/name = "water_bottom.png 4"
|
||||||
|
4/texture = ExtResource( 3 )
|
||||||
|
4/tex_offset = Vector2( 0, 0 )
|
||||||
|
4/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
4/region = Rect2( 0, 0, 8, 8 )
|
||||||
|
4/tile_mode = 2
|
||||||
|
4/autotile/icon_coordinate = Vector2( 0, 0 )
|
||||||
|
4/autotile/tile_size = Vector2( 8, 8 )
|
||||||
|
4/autotile/spacing = 0
|
||||||
|
4/autotile/occluder_map = [ ]
|
||||||
|
4/autotile/navpoly_map = [ ]
|
||||||
|
4/autotile/priority_map = [ ]
|
||||||
|
4/autotile/z_index_map = [ ]
|
||||||
|
4/occluder_offset = Vector2( 0, 0 )
|
||||||
|
4/navigation_offset = Vector2( 0, 0 )
|
||||||
|
4/shape_offset = Vector2( 0, 0 )
|
||||||
|
4/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
4/shape = SubResource( 3 )
|
||||||
|
4/shape_one_way = false
|
||||||
|
4/shape_one_way_margin = 1.0
|
||||||
|
4/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 3 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
}, {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 4 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
4/z_index = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue