Skip to content

Commit

Permalink
Add collisions for trees
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Grech committed Mar 6, 2021
1 parent 99a45e6 commit da43bab
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Scenes/Maps/MapTest.tscn
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=6 format=2]

[ext_resource path="res://OpMon-Data/Tileset/tileset.png" type="Texture" id=1]
[ext_resource path="res://Scenes/Interactable/NPC.tscn" type="PackedScene" id=2]

[sub_resource type="ConvexPolygonShape2D" id=5]
points = PoolVector2Array( 80, 48, 0, 48, 0, 0, 80, 0 )

[sub_resource type="ConvexPolygonShape2D" id=6]
points = PoolVector2Array( 32, 48, 0, 48, 0, 0, 32, 0 )

[sub_resource type="TileSet" id=4]
0/name = "tileset.png 0"
0/texture = ExtResource( 1 )
Expand Down Expand Up @@ -66,9 +69,16 @@ points = PoolVector2Array( 80, 48, 0, 48, 0, 0, 80, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 0, 0 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
3/shape = SubResource( 6 )
3/shape_one_way = false
3/shape_one_way_margin = 0.0
3/shapes = [ ]
3/shape_one_way_margin = 1.0
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 6 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
3/z_index = 0

[node name="MapTest" type="YSort"]
Expand Down

0 comments on commit da43bab

Please sign in to comment.