From d6325999aee358295f41de4867e4689ac3d94d80 Mon Sep 17 00:00:00 2001 From: pennyrigate Date: Sun, 26 Feb 2023 21:41:56 -0500 Subject: [PATCH] water tiles given collision (fixes #57) --- tilesets/t_death.tres | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/tilesets/t_death.tres b/tilesets/t_death.tres index 1e078e2..4610eff 100644 --- a/tilesets/t_death.tres +++ b/tilesets/t_death.tres @@ -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/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] 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] 0/name = "water.tres 0" 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 ) } ] 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