Chest animation, alarm box entity

This commit is contained in:
Marco 2025-06-24 15:00:27 +02:00
commit 164c186201
25 changed files with 177 additions and 23 deletions

View file

@ -1,27 +1,18 @@
[gd_scene load_steps=6 format=3 uid="uid://cpx5yjfg3a2hw"]
[gd_scene load_steps=5 format=3 uid="uid://cpx5yjfg3a2hw"]
[ext_resource type="Script" uid="uid://qxh76ahgexqa" path="res://Scripts/Interactables/Switch3D.cs" id="1_4ysgp"]
[ext_resource type="Texture2D" uid="uid://d24g1qb40t72l" path="res://Sprites/Button_Small.png" id="2_t4kxh"]
[ext_resource type="Script" uid="uid://dxhf1twoxf4j0" path="res://Scripts/Interactables/AlarmBox3D.cs" id="1_4ysgp"]
[ext_resource type="AudioStream" uid="uid://bjvklk7qmlivd" path="res://SFX/288963__littlerobotsoundfactory__click_electronic_14.wav" id="3_5t8l3"]
[ext_resource type="PackedScene" uid="uid://s4yb3i3td11j" path="res://3D/BlockbenchModels/AlarmBox/Alarm_Box.gltf" id="4_4ysgp"]
[sub_resource type="SphereShape3D" id="SphereShape3D_itd0i"]
radius = 0.868968
radius = 0.419927
[node name="ControlPad" type="Area3D" groups=["Interactable"]]
[node name="AlarmBox" type="Area3D" groups=["Interactable"]]
collision_layer = 32
collision_mask = 0
script = ExtResource("1_4ysgp")
metadata/_edit_group_ = true
[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 0, 0)
visible = false
pixel_size = 0.1
texture_filter = 0
texture = ExtResource("2_t4kxh")
hframes = 4
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_itd0i")

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=5 format=3 uid="uid://hak5o0k5yhn1"]
[ext_resource type="PackedScene" uid="uid://bc0du3r4krgg1" path="res://3D/BlockbenchModels/Terminal/Terminal.gltf" id="1_7jsh0"]
[ext_resource type="Script" uid="uid://duy020jwtwver" path="res://Scripts/Activables/Terminal3D.cs" id="1_sn7tt"]
[ext_resource type="Script" uid="uid://duy020jwtwver" path="res://Scripts/Activables/DialogueActor3D.cs" id="1_sn7tt"]
[sub_resource type="SphereShape3D" id="SphereShape3D_2cx3w"]
@ -12,7 +12,6 @@ size = Vector3(0.405762, 0.402695, 0.405273)
collision_layer = 32
collision_mask = 0
script = ExtResource("1_sn7tt")
TimelineName = &"timeline"
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_2cx3w")

View file

@ -27,3 +27,7 @@ shape = SubResource("BoxShape3D_sefe4")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.271027, 0)
shape = SubResource("SphereShape3D_sxwrc")
[connection signal="OpenChest" from="." to="SolidChest/blockbench_export/AnimationPlayer" method="play" binds= ["Open"]]
[editable path="SolidChest/blockbench_export"]

View file

@ -31,3 +31,5 @@ stream = ExtResource("3_ldivl")
bus = &"Effects"
[node name="blockbench_export" parent="." instance=ExtResource("4_dfw4f")]
[editable path="blockbench_export"]