Added closing door to blockout 2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=104 format=4 uid="uid://6agmt1hqlhww"]
|
||||
[gd_scene load_steps=111 format=4 uid="uid://6agmt1hqlhww"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/LevelManager.gd" id="1_sbpvn"]
|
||||
[ext_resource type="PackedScene" uid="uid://brl0bsqjl5dg3" path="res://assets/mac_10.tscn" id="2_fn4vb"]
|
||||
@@ -435,6 +435,67 @@ _data = {
|
||||
"open": SubResource("Animation_a3htr")
|
||||
}
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_orcpp"]
|
||||
size = Vector3(0.36, 6.875, 7.265)
|
||||
|
||||
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_5lrms"]
|
||||
data = PackedVector3Array(-0.18, 3.4375, 3.6325, 0.18, 3.4375, 3.6325, -0.18, -3.4375, 3.6325, 0.18, 3.4375, 3.6325, 0.18, -3.4375, 3.6325, -0.18, -3.4375, 3.6325, 0.18, 3.4375, -3.6325, -0.18, 3.4375, -3.6325, 0.18, -3.4375, -3.6325, -0.18, 3.4375, -3.6325, -0.18, -3.4375, -3.6325, 0.18, -3.4375, -3.6325, 0.18, 3.4375, 3.6325, 0.18, 3.4375, -3.6325, 0.18, -3.4375, 3.6325, 0.18, 3.4375, -3.6325, 0.18, -3.4375, -3.6325, 0.18, -3.4375, 3.6325, -0.18, 3.4375, -3.6325, -0.18, 3.4375, 3.6325, -0.18, -3.4375, -3.6325, -0.18, 3.4375, 3.6325, -0.18, -3.4375, 3.6325, -0.18, -3.4375, -3.6325, 0.18, 3.4375, 3.6325, -0.18, 3.4375, 3.6325, 0.18, 3.4375, -3.6325, -0.18, 3.4375, 3.6325, -0.18, 3.4375, -3.6325, 0.18, 3.4375, -3.6325, -0.18, -3.4375, 3.6325, 0.18, -3.4375, 3.6325, -0.18, -3.4375, -3.6325, 0.18, -3.4375, 3.6325, 0.18, -3.4375, -3.6325, -0.18, -3.4375, -3.6325)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0unbq"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-6.41302, 19.4763, 191.236)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_n4j2w"]
|
||||
resource_name = "close"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-6.41302, 26.0555, 191.236), Vector3(-6.41302, 19.4763, 191.236)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_yi4tt"]
|
||||
resource_name = "open"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-6.41302, 19.4763, 191.236), Vector3(-6.41302, 26.0555, 191.236)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kq8es"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_0unbq"),
|
||||
"close": SubResource("Animation_n4j2w"),
|
||||
"open": SubResource("Animation_yi4tt")
|
||||
}
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_0u5dv"]
|
||||
size = Vector3(77.6359, 12.0667, 32.2817)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_h6y7f"]
|
||||
resource_name = "dickbutt"
|
||||
transparency = 4
|
||||
@@ -1151,6 +1212,47 @@ libraries = {
|
||||
"": SubResource("AnimationLibrary_hkwf6")
|
||||
}
|
||||
|
||||
[node name="Room3" type="Node" parent="."]
|
||||
script = ExtResource("13_84vop")
|
||||
room_lockdown = true
|
||||
|
||||
[node name="spider21" parent="Room3" instance=ExtResource("8_h7fp0")]
|
||||
transform = Transform3D(-0.495636, 0.00137952, -0.868529, 0.000970599, 0.999999, 0.00103446, 0.86853, -0.00033027, -0.495637, -42.8622, 16.3631, 198.726)
|
||||
health = 10
|
||||
player_path = NodePath("../../Player")
|
||||
|
||||
[node name="spider20" parent="Room3" instance=ExtResource("8_h7fp0")]
|
||||
transform = Transform3D(-0.603162, 0.00141053, -0.797618, 0.000970599, 0.999999, 0.00103446, 0.797618, -0.000150212, -0.603163, -41.1004, 16.3631, 190.752)
|
||||
health = 10
|
||||
player_path = NodePath("../../Player")
|
||||
|
||||
[node name="Door" type="MeshInstance3D" parent="Room3" node_paths=PackedStringArray("anim_player")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.41302, 19.4763, 191.236)
|
||||
mesh = SubResource("BoxMesh_orcpp")
|
||||
script = ExtResource("33_1m5er")
|
||||
anim_player = NodePath("AnimationPlayer")
|
||||
door_open_start = true
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="Room3/Door"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Room3/Door/StaticBody3D"]
|
||||
shape = SubResource("ConcavePolygonShape3D_5lrms")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Room3/Door"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_kq8es")
|
||||
}
|
||||
|
||||
[node name="RoomCheck2" type="Area3D" parent="Room3"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -31.932, 21, 203.007)
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
script = ExtResource("16_ba8wj")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Room3/RoomCheck2"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.8232, 1.20935, -2.75473)
|
||||
shape = SubResource("BoxShape3D_0u5dv")
|
||||
|
||||
[node name="EnemyHivemind" parent="." instance=ExtResource("7_nut1a")]
|
||||
|
||||
[node name="spider3" parent="EnemyHivemind" instance=ExtResource("8_h7fp0")]
|
||||
@@ -1213,16 +1315,6 @@ player_path = NodePath("../../Player")
|
||||
transform = Transform3D(-0.999926, 0.000957978, 0.0121256, 0.000970599, 0.999999, 0.00103446, -0.0121246, 0.00104616, -0.999926, -47.5125, 1.01204, 77.6932)
|
||||
player_path = NodePath("../../Player")
|
||||
|
||||
[node name="spider20" parent="EnemyHivemind" instance=ExtResource("8_h7fp0")]
|
||||
transform = Transform3D(-0.603162, 0.00141053, -0.797618, 0.000970599, 0.999999, 0.00103446, 0.797618, -0.000150212, -0.603163, -41.1004, 16.3631, 190.752)
|
||||
health = 10
|
||||
player_path = NodePath("../../Player")
|
||||
|
||||
[node name="spider21" parent="EnemyHivemind" instance=ExtResource("8_h7fp0")]
|
||||
transform = Transform3D(-0.495636, 0.00137952, -0.868529, 0.000970599, 0.999999, 0.00103446, 0.86853, -0.00033027, -0.495637, -42.8622, 16.3631, 198.726)
|
||||
health = 10
|
||||
player_path = NodePath("../../Player")
|
||||
|
||||
[node name="JumpPlatform" parent="." instance=ExtResource("4_j47q8")]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 5.16314, 0.0475518, -4.92484)
|
||||
jump_amount = 30
|
||||
@@ -2141,5 +2233,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -63.7211, 1.01162, 73.1301)
|
||||
|
||||
[connection signal="body_entered" from="Room1/RoomCheck" to="Room1/RoomCheck" method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="Room1/RoomCheck" to="Room1/RoomCheck" method="_on_body_exited"]
|
||||
[connection signal="body_entered" from="Room3/RoomCheck2" to="Room3/RoomCheck2" method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="Room3/RoomCheck2" to="Room3/RoomCheck2" method="_on_body_exited"]
|
||||
[connection signal="switch_hit" from="Switch 1/switch/StaticBody3D" to="Switch 1/switch" method="_on_static_body_3d_switch_hit"]
|
||||
[connection signal="switch_hit" from="Switch 1/switch2/StaticBody3D" to="Switch 1/switch2" method="_on_static_body_3d_switch_hit"]
|
||||
|
||||
Reference in New Issue
Block a user