From 8e3817690c73cda26c20db8152f068f86856fa51 Mon Sep 17 00:00:00 2001 From: pennyrigate Date: Sun, 9 Jul 2023 01:28:21 -0400 Subject: [PATCH] gave hills tiles collision --- tilesets/t_grass.tres | 59 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/tilesets/t_grass.tres b/tilesets/t_grass.tres index 5c9fecc..6dcdf44 100644 --- a/tilesets/t_grass.tres +++ b/tilesets/t_grass.tres @@ -1,4 +1,4 @@ -[gd_resource type="TileSet" load_steps=28 format=2] +[gd_resource type="TileSet" load_steps=32 format=2] [ext_resource path="res://graphics/tiles/grass.png" type="Texture" id=1] @@ -80,6 +80,18 @@ points = PoolVector2Array( 0, 0, 8, 0, 8, 8, 0, 8 ) [sub_resource type="ConvexPolygonShape2D" id=28] points = PoolVector2Array( 0, 0, 8, 0, 8, 8, 0, 8 ) +[sub_resource type="ConvexPolygonShape2D" id=29] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=30] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=31] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=32] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + [resource] 0/name = "old grass" 0/texture = ExtResource( 1 ) @@ -187,6 +199,27 @@ points = PoolVector2Array( 0, 0, 8, 0, 8, 8, 0, 8 ) "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) } ] 0/z_index = 0 +1/name = "grass.png 1" +1/texture = ExtResource( 1 ) +1/tex_offset = Vector2( 0, 0 ) +1/modulate = Color( 1, 1, 1, 1 ) +1/region = Rect2( 0, 24, 8, 8 ) +1/tile_mode = 2 +1/autotile/icon_coordinate = Vector2( 0, 0 ) +1/autotile/tile_size = Vector2( 8, 8 ) +1/autotile/spacing = 0 +1/autotile/occluder_map = [ ] +1/autotile/navpoly_map = [ ] +1/autotile/priority_map = [ ] +1/autotile/z_index_map = [ ] +1/occluder_offset = Vector2( 0, 0 ) +1/navigation_offset = Vector2( 0, 0 ) +1/shape_offset = Vector2( 0, 0 ) +1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +1/shape_one_way = false +1/shape_one_way_margin = 0.0 +1/shapes = [ ] +1/z_index = 0 2/name = "flowers" 2/texture = ExtResource( 1 ) 2/tex_offset = Vector2( 0, 0 ) @@ -302,5 +335,29 @@ points = PoolVector2Array( 0, 0, 8, 0, 8, 8, 0, 8 ) "one_way_margin": 1.0, "shape": SubResource( 28 ), "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 0, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 29 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 1, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 30 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 31 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 3, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 32 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) } ] 3/z_index = 0