started work on doors and switches
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=31 format=4 uid="uid://ddyfy6iosbgsj"]
|
||||
[gd_scene load_steps=37 format=4 uid="uid://ddyfy6iosbgsj"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/LevelManager.gd" id="1_jjeos"]
|
||||
[ext_resource type="PackedScene" uid="uid://b5eclfg0cmmal" path="res://assets/revolver_1.tscn" id="2_7dd4i"]
|
||||
@@ -350,6 +350,64 @@ _surfaces = [{
|
||||
blend_shape_mode = 0
|
||||
shadow_mesh = SubResource("ArrayMesh_niymj")
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_6no40"]
|
||||
size = Vector3(8.3, 9.07, 0.25)
|
||||
|
||||
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_ep0aj"]
|
||||
points = PackedVector3Array(4.27131, 4.60698, 0.234921, -4.22115, -4.60698, -0.196984, -4.22115, -4.60698, 0.234921, -4.22115, 4.60698, -0.196984, 4.27131, -4.60698, -0.196984, 4.27131, -4.60698, 0.234921, -4.22115, 4.60698, 0.234921, 4.27131, 4.60698, -0.196984)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_e7xa1"]
|
||||
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(0, 4.27403, -20.1043), Vector3(0, 13.305, -20.1043)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_euj1a"]
|
||||
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(0, 4.27403, -20.1043)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0gb2s"]
|
||||
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(0, 13.305, -20.1043), Vector3(0, 4.27403, -20.1043)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_66q6k"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_euj1a"),
|
||||
"close": SubResource("Animation_0gb2s"),
|
||||
"open": SubResource("Animation_e7xa1")
|
||||
}
|
||||
|
||||
[node name="Blockout3" type="Node3D" node_paths=PackedStringArray("player")]
|
||||
script = ExtResource("1_jjeos")
|
||||
player = NodePath("Player")
|
||||
@@ -416,3 +474,19 @@ jump_amount = 30
|
||||
|
||||
[node name="switch" parent="." instance=ExtResource("10_lktr8")]
|
||||
transform = Transform3D(1.655, 0, 0, 0, 1.655, 0, 0, 0, 1.655, 18.839, 24.696, 0)
|
||||
|
||||
[node name="Door1" type="Node" parent="."]
|
||||
|
||||
[node name="Door" type="MeshInstance3D" parent="Door1"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.27403, -20.1043)
|
||||
mesh = SubResource("BoxMesh_6no40")
|
||||
|
||||
[node name="StaticBody3D2" type="StaticBody3D" parent="Door1/Door"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Door1/Door/StaticBody3D2"]
|
||||
shape = SubResource("ConvexPolygonShape3D_ep0aj")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Door1/Door"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_66q6k")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user