This commit is contained in:
MaddoScientisto 2025-02-15 22:29:29 +01:00
commit c93a3bb944
4 changed files with 90 additions and 6 deletions

View file

@ -102,7 +102,7 @@ size = Vector2(32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
size = Vector2(32, 32)
[node name="Area2D" type="Area2D" groups=["Solid"]]
[node name="HorizontalDoor" type="Area2D" groups=["Solid"]]
collision_layer = 64
collision_mask = 154
script = ExtResource("1_emfh4")

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
[gd_resource type="TileSet" load_steps=30 format=3 uid="uid://6k28roiljylj"]
[gd_resource type="TileSet" load_steps=32 format=3 uid="uid://6k28roiljylj"]
[ext_resource type="Texture2D" uid="uid://tphqodqyere1" path="res://Tilesets/factory.png" id="1_70kxh"]
[ext_resource type="PackedScene" uid="uid://bj28qiai2x2ar" path="res://Scenes/Props/Barrel.tscn" id="2_cxg4b"]
@ -24,6 +24,12 @@ polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)])
agent_radius = 0.0
[sub_resource type="NavigationPolygon" id="NavigationPolygon_1fi5l"]
vertices = PackedVector2Array(8, 8, -8, 8, -8, -8, 8, -8)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)])
agent_radius = 0.0
[sub_resource type="NavigationPolygon" id="NavigationPolygon_ml1qs"]
vertices = PackedVector2Array(8, 8, -8, 8, -8, -8, 8, -8)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
@ -108,6 +114,12 @@ polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)])
agent_radius = 0.0
[sub_resource type="NavigationPolygon" id="NavigationPolygon_wxtpa"]
vertices = PackedVector2Array(8, 8, -8, 8, -8, -8, 8, -8)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)])
agent_radius = 0.0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_jwf4b"]
resource_name = "Factory"
texture = ExtResource("1_70kxh")
@ -126,6 +138,7 @@ texture = ExtResource("1_70kxh")
8:0/0/physics_layer_1/polygon_0/points = PackedVector2Array(-4, -6, -4, 8, 4, 8, 4, -6)
9:0/0 = 0
9:0/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
9:0/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_wxtpa")
0:1/0 = 0
0:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_l8pdw")
1:1/0 = 0
@ -180,32 +193,38 @@ texture = ExtResource("1_70kxh")
9:3/0 = 0
9:3/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
0:4/0 = 0
0:4/0/z_index = 1
0:4/0/terrain_set = 0
0:4/0/terrain = 2
0:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
0:4/0/terrains_peering_bit/bottom_side = 2
0:4/0/terrains_peering_bit/top_side = 2
1:4/0 = 0
1:4/0/z_index = 1
1:4/0/terrain_set = 0
1:4/0/terrain = 2
1:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
1:4/0/terrains_peering_bit/right_side = 2
1:4/0/terrains_peering_bit/left_side = 2
2:4/0 = 0
2:4/0/z_index = 1
2:4/0/terrain_set = 0
2:4/0/terrain = 2
2:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:4/0/terrains_peering_bit/right_side = 2
3:4/0 = 0
3:4/0/z_index = 1
3:4/0/terrain_set = 0
3:4/0/terrain = 2
3:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
3:4/0/terrains_peering_bit/left_side = 2
4:4/0 = 0
4:4/0/z_index = 1
4:4/0/terrain_set = 0
4:4/0/terrain = 2
4:4/0/terrains_peering_bit/top_side = 2
5:4/0 = 0
5:4/0/z_index = 1
5:4/0/terrain_set = 0
5:4/0/terrain = 2
5:4/0/terrains_peering_bit/bottom_side = 2
@ -214,6 +233,7 @@ texture = ExtResource("1_70kxh")
8:4/0 = 0
9:4/0 = 0
0:5/0 = 0
0:5/0/z_index = 1
0:5/0/terrain_set = 0
0:5/0/terrain = 2
0:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
@ -221,6 +241,7 @@ texture = ExtResource("1_70kxh")
0:5/0/terrains_peering_bit/bottom_right_corner = 2
0:5/0/terrains_peering_bit/bottom_side = 2
1:5/0 = 0
1:5/0/z_index = 1
1:5/0/terrain_set = 0
1:5/0/terrain = 2
1:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
@ -230,6 +251,7 @@ texture = ExtResource("1_70kxh")
1:5/0/terrains_peering_bit/bottom_left_corner = 2
1:5/0/terrains_peering_bit/left_side = 2
2:5/0 = 0
2:5/0/z_index = 1
2:5/0/terrain_set = 0
2:5/0/terrain = 2
2:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
@ -267,6 +289,7 @@ texture = ExtResource("1_70kxh")
9:5/0/terrains_peering_bit/bottom_side = 1
9:5/0/terrains_peering_bit/left_side = 1
0:6/0 = 0
0:6/0/z_index = 1
0:6/0/terrain_set = 0
0:6/0/terrain = 2
0:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
@ -276,10 +299,12 @@ texture = ExtResource("1_70kxh")
0:6/0/terrains_peering_bit/top_side = 2
0:6/0/terrains_peering_bit/top_right_corner = 2
1:6/0 = 0
1:6/0/z_index = 1
1:6/0/terrain_set = 0
1:6/0/terrain = 2
1:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:6/0 = 0
2:6/0/z_index = 1
2:6/0/terrain_set = 0
2:6/0/terrain = 2
2:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
@ -313,6 +338,7 @@ texture = ExtResource("1_70kxh")
9:6/0/terrains_peering_bit/bottom_side = 1
9:6/0/terrains_peering_bit/top_side = 1
0:7/0 = 0
0:7/0/z_index = 1
0:7/0/terrain_set = 0
0:7/0/terrain = 2
0:7/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
@ -320,6 +346,7 @@ texture = ExtResource("1_70kxh")
0:7/0/terrains_peering_bit/top_side = 2
0:7/0/terrains_peering_bit/top_right_corner = 2
1:7/0 = 0
1:7/0/z_index = 1
1:7/0/terrain_set = 0
1:7/0/terrain = 2
1:7/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
@ -329,6 +356,7 @@ texture = ExtResource("1_70kxh")
1:7/0/terrains_peering_bit/top_side = 2
1:7/0/terrains_peering_bit/top_right_corner = 2
2:7/0 = 0
2:7/0/z_index = 1
2:7/0/terrain_set = 0
2:7/0/terrain = 2
2:7/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
@ -355,6 +383,7 @@ texture = ExtResource("1_70kxh")
8:7/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_63d1d")
9:7/0 = 0
0:8/0 = 0
0:8/0/z_index = 1
0:8/0/terrain_set = 0
0:8/0/terrain = 2
0:8/0/terrains_peering_bit/right_side = 2
@ -365,6 +394,7 @@ texture = ExtResource("1_70kxh")
0:8/0/terrains_peering_bit/top_side = 2
0:8/0/terrains_peering_bit/top_right_corner = 2
1:8/0 = 0
1:8/0/z_index = 1
1:8/0/terrain_set = 0
1:8/0/terrain = 2
1:8/0/terrains_peering_bit/right_side = 2
@ -375,6 +405,7 @@ texture = ExtResource("1_70kxh")
1:8/0/terrains_peering_bit/top_side = 2
1:8/0/terrains_peering_bit/top_right_corner = 2
2:8/0 = 0
2:8/0/z_index = 1
2:8/0/terrain_set = 0
2:8/0/terrain = 2
2:8/0/terrains_peering_bit/right_side = 2
@ -416,6 +447,7 @@ texture = ExtResource("1_70kxh")
8:8/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 4, -8, 4, -8, -8)
9:8/0 = 0
0:9/0 = 0
0:9/0/z_index = 1
0:9/0/terrain_set = 0
0:9/0/terrain = 2
0:9/0/terrains_peering_bit/right_side = 2
@ -426,6 +458,7 @@ texture = ExtResource("1_70kxh")
0:9/0/terrains_peering_bit/top_left_corner = 2
0:9/0/terrains_peering_bit/top_side = 2
1:9/0 = 0
1:9/0/z_index = 1
1:9/0/terrain_set = 0
1:9/0/terrain = 2
1:9/0/terrains_peering_bit/right_side = 2
@ -510,16 +543,19 @@ texture = ExtResource("1_70kxh")
8:10/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 4, -8, 4, -8, -8)
9:10/0 = 0
0:11/0 = 0
0:11/0/z_index = 1
0:11/0/terrain_set = 0
0:11/0/terrain = 2
0:11/0/terrains_peering_bit/right_side = 2
0:11/0/terrains_peering_bit/bottom_side = 2
1:11/0 = 0
1:11/0/z_index = 1
1:11/0/terrain_set = 0
1:11/0/terrain = 2
1:11/0/terrains_peering_bit/bottom_side = 2
1:11/0/terrains_peering_bit/left_side = 2
2:11/0 = 0
2:11/0/z_index = 1
2:11/0/terrain_set = 0
2:11/0/terrain = 2
2:11/0/terrains_peering_bit/right_side = 2
@ -527,6 +563,7 @@ texture = ExtResource("1_70kxh")
2:11/0/terrains_peering_bit/top_side = 2
2:11/0/terrains_peering_bit/top_right_corner = 2
3:11/0 = 0
3:11/0/z_index = 1
3:11/0/terrain_set = 0
3:11/0/terrain = 2
3:11/0/terrains_peering_bit/bottom_side = 2
@ -534,6 +571,7 @@ texture = ExtResource("1_70kxh")
3:11/0/terrains_peering_bit/top_left_corner = 2
3:11/0/terrains_peering_bit/top_side = 2
4:11/0 = 0
4:11/0/z_index = 1
4:11/0/terrain_set = 0
4:11/0/terrain = 2
4:11/0/terrains_peering_bit/right_side = 2
@ -541,6 +579,7 @@ texture = ExtResource("1_70kxh")
4:11/0/terrains_peering_bit/bottom_left_corner = 2
4:11/0/terrains_peering_bit/left_side = 2
5:11/0 = 0
5:11/0/z_index = 1
5:11/0/terrain_set = 0
5:11/0/terrain = 2
5:11/0/terrains_peering_bit/right_side = 2
@ -552,16 +591,19 @@ texture = ExtResource("1_70kxh")
8:11/0 = 0
9:11/0 = 0
0:12/0 = 0
0:12/0/z_index = 1
0:12/0/terrain_set = 0
0:12/0/terrain = 2
0:12/0/terrains_peering_bit/right_side = 2
0:12/0/terrains_peering_bit/top_side = 2
1:12/0 = 0
1:12/0/z_index = 1
1:12/0/terrain_set = 0
1:12/0/terrain = 2
1:12/0/terrains_peering_bit/left_side = 2
1:12/0/terrains_peering_bit/top_side = 2
2:12/0 = 0
2:12/0/z_index = 1
2:12/0/terrain_set = 0
2:12/0/terrain = 2
2:12/0/terrains_peering_bit/right_side = 2
@ -569,6 +611,7 @@ texture = ExtResource("1_70kxh")
2:12/0/terrains_peering_bit/bottom_side = 2
2:12/0/terrains_peering_bit/top_side = 2
3:12/0 = 0
3:12/0/z_index = 1
3:12/0/terrain_set = 0
3:12/0/terrain = 2
3:12/0/terrains_peering_bit/bottom_side = 2
@ -576,6 +619,7 @@ texture = ExtResource("1_70kxh")
3:12/0/terrains_peering_bit/left_side = 2
3:12/0/terrains_peering_bit/top_side = 2
4:12/0 = 0
4:12/0/z_index = 1
4:12/0/terrain_set = 0
4:12/0/terrain = 2
4:12/0/terrains_peering_bit/right_side = 2
@ -583,6 +627,7 @@ texture = ExtResource("1_70kxh")
4:12/0/terrains_peering_bit/top_left_corner = 2
4:12/0/terrains_peering_bit/top_side = 2
5:12/0 = 0
5:12/0/z_index = 1
5:12/0/terrain_set = 0
5:12/0/terrain = 2
5:12/0/terrains_peering_bit/right_side = 2
@ -594,18 +639,21 @@ texture = ExtResource("1_70kxh")
8:12/0 = 0
9:12/0 = 0
0:13/0 = 0
0:13/0/z_index = 1
0:13/0/terrain_set = 0
0:13/0/terrain = 2
0:13/0/terrains_peering_bit/right_side = 2
0:13/0/terrains_peering_bit/bottom_side = 2
0:13/0/terrains_peering_bit/left_side = 2
1:13/0 = 0
1:13/0/z_index = 1
1:13/0/terrain_set = 0
1:13/0/terrain = 2
1:13/0/terrains_peering_bit/bottom_side = 2
1:13/0/terrains_peering_bit/left_side = 2
1:13/0/terrains_peering_bit/top_side = 2
2:13/0 = 0
2:13/0/z_index = 1
2:13/0/terrain_set = 0
2:13/0/terrain = 2
2:13/0/terrains_peering_bit/right_side = 2
@ -614,6 +662,7 @@ texture = ExtResource("1_70kxh")
2:13/0/terrains_peering_bit/top_left_corner = 2
2:13/0/terrains_peering_bit/top_side = 2
3:13/0 = 0
3:13/0/z_index = 1
3:13/0/terrain_set = 0
3:13/0/terrain = 2
3:13/0/terrains_peering_bit/right_side = 2
@ -628,18 +677,21 @@ texture = ExtResource("1_70kxh")
8:13/0 = 0
9:13/0 = 0
0:14/0 = 0
0:14/0/z_index = 1
0:14/0/terrain_set = 0
0:14/0/terrain = 2
0:14/0/terrains_peering_bit/right_side = 2
0:14/0/terrains_peering_bit/left_side = 2
0:14/0/terrains_peering_bit/top_side = 2
1:14/0 = 0
1:14/0/z_index = 1
1:14/0/terrain_set = 0
1:14/0/terrain = 2
1:14/0/terrains_peering_bit/right_side = 2
1:14/0/terrains_peering_bit/bottom_side = 2
1:14/0/terrains_peering_bit/top_side = 2
2:14/0 = 0
2:14/0/z_index = 1
2:14/0/terrain_set = 0
2:14/0/terrain = 2
2:14/0/terrains_peering_bit/right_side = 2
@ -648,6 +700,7 @@ texture = ExtResource("1_70kxh")
2:14/0/terrains_peering_bit/left_side = 2
2:14/0/terrains_peering_bit/top_side = 2
3:14/0 = 0
3:14/0/z_index = 1
3:14/0/terrain_set = 0
3:14/0/terrain = 2
3:14/0/terrains_peering_bit/right_side = 2
@ -682,8 +735,10 @@ texture = ExtResource("1_70kxh")
4:7/0 = 0
10:0/0 = 0
10:0/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
10:0/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_1fi5l")
10:1/0 = 0
10:1/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
10:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_1fi5l")
10:2/0 = 0
10:2/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
10:3/0 = 0