Collision with tileset

This commit is contained in:
Florian GOLESTIN 2026-01-18 10:42:52 +01:00
parent 870d715fc8
commit 5c86928376
2 changed files with 8 additions and 9 deletions

View File

@ -6,8 +6,11 @@
texture = ExtResource("1_hwl2e") texture = ExtResource("1_hwl2e")
texture_region_size = Vector2i(64, 64) texture_region_size = Vector2i(64, 64)
0:0/0 = 0 0:0/0 = 0
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-27.09475, -5.080265, 2.2578888, -25.9658, 32, -32, 32, 32, -32, 32)
1:0/0 = 0 1:0/0 = 0
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 32, -32, 32, 32, -32, 32)
2:0/0 = 0 2:0/0 = 0
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 2.2578888, -25.9658, 19.756584, -2.2578964, 32, 32, -32, 32)
3:0/0 = 0 3:0/0 = 0
4:0/0 = 0 4:0/0 = 0
5:0/0 = 0 5:0/0 = 0
@ -38,8 +41,11 @@ texture_region_size = Vector2i(64, 64)
0:3/0 = 0 0:3/0 = 0
1:3/0 = 0 1:3/0 = 0
2:3/0 = 0 2:3/0 = 0
2:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 32, -32, 32, 2.2578964, 32, 32, -6.7736893, 27.094742, -19.756592, 5.6447372)
3:3/0 = 0 3:3/0 = 0
3:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 32, -32, 32, 2.2578964, 32, 32, -32, 32)
4:3/0 = 0 4:3/0 = 0
4:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 32, -32, 32, 2.2578964, 14.111847, 17.498688, -32, 32)
5:3/0 = 0 5:3/0 = 0
6:3/0 = 0 6:3/0 = 0
7:3/0 = 0 7:3/0 = 0
@ -108,4 +114,5 @@ texture_region_size = Vector2i(64, 64)
[resource] [resource]
tile_size = Vector2i(64, 64) tile_size = Vector2i(64, 64)
physics_layer_0/collision_layer = 1
sources/1 = SubResource("TileSetAtlasSource_8yysw") sources/1 = SubResource("TileSetAtlasSource_8yysw")

View File

@ -13,6 +13,7 @@ tile_map_data = PackedByteArray("AAAEAAIAAQAAAAAAAAAFAAIAAQABAAAAAAAGAAMAAQAEAAM
[node name="Tiles2" parent="." instance=ExtResource("2_7b103")] [node name="Tiles2" parent="." instance=ExtResource("2_7b103")]
tile_map_data = PackedByteArray("AAAEAAIAAQAAAAAAAAAFAAIAAQABAAAAAAAGAAMAAQAEAAMAAAAFAAMAAQADAAMAAAAEAAMAAQACAAMAAAAGAAIAAQACAAAAAAA=") tile_map_data = PackedByteArray("AAAEAAIAAQAAAAAAAAAFAAIAAQABAAAAAAAGAAMAAQAEAAMAAAAFAAMAAQADAAMAAAAEAAMAAQACAAMAAAAGAAIAAQACAAAAAAA=")
collision_visibility_mode = 1
script = null script = null
[node name="Player" parent="." instance=ExtResource("1_jlnlo")] [node name="Player" parent="." instance=ExtResource("1_jlnlo")]
@ -24,14 +25,5 @@ position = Vector2(114, 242)
[node name="Pirate" parent="." instance=ExtResource("4_rwt5c")] [node name="Pirate" parent="." instance=ExtResource("4_rwt5c")]
position = Vector2(-5, 304) position = Vector2(-5, 304)
[node name="Pirate2" parent="." instance=ExtResource("4_rwt5c")]
position = Vector2(312, 315)
[node name="Pirate3" parent="." instance=ExtResource("4_rwt5c")]
position = Vector2(331, 39)
[node name="Pirate4" parent="." instance=ExtResource("4_rwt5c")]
position = Vector2(-153, -73)
[node name="WreckedBoat" parent="." instance=ExtResource("5_6pf7f")] [node name="WreckedBoat" parent="." instance=ExtResource("5_6pf7f")]
position = Vector2(357, 193) position = Vector2(357, 193)