nieuwe safe

This commit is contained in:
2023-03-04 13:31:38 +01:00
parent 58fb2e6643
commit 3bb23ddfc9
5 changed files with 34 additions and 136 deletions
Binary file not shown.
-30
View File
@@ -1,30 +0,0 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://c37oos73shmdm"
path="res://.godot/imported/safe.glb-3bdd72b210b12d39e6232525a0589a4e.scn"
[deps]
source_file="res://Objects/Meshes/safe.glb"
dest_files=["res://.godot/imported/safe.glb-3bdd72b210b12d39e6232525a0589a4e.scn"]
[params]
nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
import_script/path=""
_subresources={}
-71
View File
@@ -1,71 +0,0 @@
[gd_scene load_steps=11 format=3 uid="uid://2wem3a0y4agb"]
[ext_resource type="PackedScene" uid="uid://c37oos73shmdm" path="res://Objects/Meshes/safe.glb" id="1_1djbc"]
[ext_resource type="Script" path="res://Scripts/Safe.gd" id="2_mnk2b"]
[ext_resource type="AudioStream" uid="uid://mi8fox007pdr" path="res://Audio/button.wav" id="3_hu2uh"]
[ext_resource type="AudioStream" uid="uid://c403ltk7lrae0" path="res://Audio/reset.wav" id="4_npf4a"]
[ext_resource type="AudioStream" uid="uid://d0bincgxhycg" path="res://Audio/doosje.wav" id="4_qd12a"]
[sub_resource type="BoxShape3D" id="BoxShape3D_aljli"]
size = Vector3(2, 2, 2)
[sub_resource type="SphereShape3D" id="SphereShape3D_md1id"]
radius = 1.75
[sub_resource type="SphereShape3D" id="SphereShape3D_1tx7e"]
radius = 1.75
[sub_resource type="SphereShape3D" id="SphereShape3D_f7rki"]
radius = 1.75
[sub_resource type="SphereShape3D" id="SphereShape3D_h6ph4"]
radius = 1.75
[node name="safe" instance=ExtResource("1_1djbc")]
script = ExtResource("2_mnk2b")
[node name="Button" type="AudioStreamPlayer" parent="." index="0"]
stream = ExtResource("3_hu2uh")
volume_db = -6.19
[node name="Open" type="AudioStreamPlayer" parent="." index="1"]
stream = ExtResource("4_qd12a")
[node name="Reset" type="AudioStreamPlayer" parent="." index="2"]
stream = ExtResource("4_npf4a")
volume_db = -6.19
[node name="StaticBody3D" type="StaticBody3D" parent="Box" index="0"]
input_ray_pickable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="Box/StaticBody3D" index="0"]
shape = SubResource("BoxShape3D_aljli")
[node name="Down" type="StaticBody3D" parent="Door/ButtonDown" index="0"]
collision_layer = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Door/ButtonDown/Down" index="0"]
shape = SubResource("SphereShape3D_md1id")
[node name="Left" type="StaticBody3D" parent="Door/ButtonLeft" index="0"]
collision_layer = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Door/ButtonLeft/Left" index="0"]
shape = SubResource("SphereShape3D_1tx7e")
[node name="Right" type="StaticBody3D" parent="Door/ButtonRight" index="0"]
collision_layer = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Door/ButtonRight/Right" index="0"]
shape = SubResource("SphereShape3D_f7rki")
[node name="Up" type="StaticBody3D" parent="Door/ButtonUp" index="0"]
collision_layer = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Door/ButtonUp/Up" index="0"]
shape = SubResource("SphereShape3D_h6ph4")
[connection signal="input_event" from="Door/ButtonDown/Down" to="." method="_on_down_input_event"]
[connection signal="input_event" from="Door/ButtonLeft/Left" to="." method="_on_left_input_event"]
[connection signal="input_event" from="Door/ButtonRight/Right" to="." method="_on_right_input_event"]
[connection signal="input_event" from="Door/ButtonUp/Up" to="." method="_on_up_input_event"]