diff --git a/Audio/doosje.wav b/Audio/doosje.wav new file mode 100644 index 0000000..7e56443 Binary files /dev/null and b/Audio/doosje.wav differ diff --git a/Audio/doosje.wav.import b/Audio/doosje.wav.import new file mode 100644 index 0000000..515b47f --- /dev/null +++ b/Audio/doosje.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://d0bincgxhycg" +path="res://.godot/imported/doosje.wav-9c710f39e6b6fa8e09884f740b314732.sample" + +[deps] + +source_file="res://Audio/doosje.wav" +dest_files=["res://.godot/imported/doosje.wav-9c710f39e6b6fa8e09884f740b314732.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/Objects/Safe.tscn b/Objects/Safe.tscn index 8ec8a5f..34baca4 100644 --- a/Objects/Safe.tscn +++ b/Objects/Safe.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=9 format=3 uid="uid://2wem3a0y4agb"] +[gd_scene load_steps=10 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="ConcavePolygonShape3D" id="ConcavePolygonShape3D_sae2f"] data = PackedVector3Array(0, -1, -1, 0.1951, 1, -0.9808, 0, 1, -1, 0, -1, -1, 0.1951, -1, -0.9808, 0.1951, 1, -0.9808, 0.1951, -1, -0.9808, 0.3827, 1, -0.9239, 0.1951, 1, -0.9808, 0.1951, -1, -0.9808, 0.3827, -1, -0.9239, 0.3827, 1, -0.9239, 0.3827, -1, -0.9239, 0.5556, 1, -0.8315, 0.3827, 1, -0.9239, 0.3827, -1, -0.9239, 0.5556, -1, -0.8315, 0.5556, 1, -0.8315, 0.5556, -1, -0.8315, 0.7071, 1, -0.7071, 0.5556, 1, -0.8315, 0.5556, -1, -0.8315, 0.7071, -1, -0.7071, 0.7071, 1, -0.7071, 0.7071, -1, -0.7071, 0.8315, 1, -0.5556, 0.7071, 1, -0.7071, 0.7071, -1, -0.7071, 0.8315, -1, -0.5556, 0.8315, 1, -0.5556, 0.8315, -1, -0.5556, 0.9239, 1, -0.3827, 0.8315, 1, -0.5556, 0.8315, -1, -0.5556, 0.9239, -1, -0.3827, 0.9239, 1, -0.3827, 0.9239, -1, -0.3827, 0.9808, 1, -0.1951, 0.9239, 1, -0.3827, 0.9239, -1, -0.3827, 0.9808, -1, -0.1951, 0.9808, 1, -0.1951, 0.9808, -1, -0.1951, 1, 1, 0, 0.9808, 1, -0.1951, 0.9808, -1, -0.1951, 1, -1, 0, 1, 1, 0, 1, -1, 0, 0.9808, 1, 0.1951, 1, 1, 0, 1, -1, 0, 0.9808, -1, 0.1951, 0.9808, 1, 0.1951, 0.9808, -1, 0.1951, 0.9239, 1, 0.3827, 0.9808, 1, 0.1951, 0.9808, -1, 0.1951, 0.9239, -1, 0.3827, 0.9239, 1, 0.3827, 0.9239, -1, 0.3827, 0.8315, 1, 0.5556, 0.9239, 1, 0.3827, 0.9239, -1, 0.3827, 0.8315, -1, 0.5556, 0.8315, 1, 0.5556, 0.8315, -1, 0.5556, 0.7071, 1, 0.7071, 0.8315, 1, 0.5556, 0.8315, -1, 0.5556, 0.7071, -1, 0.7071, 0.7071, 1, 0.7071, 0.7071, -1, 0.7071, 0.5556, 1, 0.8315, 0.7071, 1, 0.7071, 0.7071, -1, 0.7071, 0.5556, -1, 0.8315, 0.5556, 1, 0.8315, 0.5556, -1, 0.8315, 0.3827, 1, 0.9239, 0.5556, 1, 0.8315, 0.5556, -1, 0.8315, 0.3827, -1, 0.9239, 0.3827, 1, 0.9239, 0.3827, -1, 0.9239, 0.1951, 1, 0.9808, 0.3827, 1, 0.9239, 0.3827, -1, 0.9239, 0.1951, -1, 0.9808, 0.1951, 1, 0.9808, 0.1951, -1, 0.9808, 0, 1, 1, 0.1951, 1, 0.9808, 0.1951, -1, 0.9808, 0, -1, 1, 0, 1, 1, 0, -1, 1, -0.1951, 1, 0.9808, 0, 1, 1, 0, -1, 1, -0.1951, -1, 0.9808, -0.1951, 1, 0.9808, -0.1951, -1, 0.9808, -0.3827, 1, 0.9239, -0.1951, 1, 0.9808, -0.1951, -1, 0.9808, -0.3827, -1, 0.9239, -0.3827, 1, 0.9239, -0.3827, -1, 0.9239, -0.5556, 1, 0.8315, -0.3827, 1, 0.9239, -0.3827, -1, 0.9239, -0.5556, -1, 0.8315, -0.5556, 1, 0.8315, -0.5556, -1, 0.8315, -0.7071, 1, 0.7071, -0.5556, 1, 0.8315, -0.5556, -1, 0.8315, -0.7071, -1, 0.7071, -0.7071, 1, 0.7071, -0.7071, -1, 0.7071, -0.8315, 1, 0.5556, -0.7071, 1, 0.7071, -0.7071, -1, 0.7071, -0.8315, -1, 0.5556, -0.8315, 1, 0.5556, -0.8315, -1, 0.5556, -0.9239, 1, 0.3827, -0.8315, 1, 0.5556, -0.8315, -1, 0.5556, -0.9239, -1, 0.3827, -0.9239, 1, 0.3827, -0.9239, -1, 0.3827, -0.9808, 1, 0.1951, -0.9239, 1, 0.3827, -0.9239, -1, 0.3827, -0.9808, -1, 0.1951, -0.9808, 1, 0.1951, -0.9808, -1, 0.1951, -1, 1, 0, -0.9808, 1, 0.1951, -0.9808, -1, 0.1951, -1, -1, 0, -1, 1, 0, -1, -1, 0, -0.9808, 1, -0.1951, -1, 1, 0, -1, -1, 0, -0.9808, -1, -0.1951, -0.9808, 1, -0.1951, -0.9808, -1, -0.1951, -0.9239, 1, -0.3827, -0.9808, 1, -0.1951, -0.9808, -1, -0.1951, -0.9239, -1, -0.3827, -0.9239, 1, -0.3827, -0.9239, -1, -0.3827, -0.8315, 1, -0.5556, -0.9239, 1, -0.3827, -0.9239, -1, -0.3827, -0.8315, -1, -0.5556, -0.8315, 1, -0.5556, -0.8315, -1, -0.5556, -0.7071, 1, -0.7071, -0.8315, 1, -0.5556, -0.8315, -1, -0.5556, -0.7071, -1, -0.7071, -0.7071, 1, -0.7071, -0.7071, -1, -0.7071, -0.5556, 1, -0.8315, -0.7071, 1, -0.7071, -0.7071, -1, -0.7071, -0.5556, -1, -0.8315, -0.5556, 1, -0.8315, -0.5556, -1, -0.8315, -0.3827, 1, -0.9239, -0.5556, 1, -0.8315, -0.5556, -1, -0.8315, -0.3827, -1, -0.9239, -0.3827, 1, -0.9239, 0.3827, 1, -0.9239, 0, 1, -1, 0.1951, 1, -0.9808, 0, 1, -1, -0.3827, 1, -0.9239, -0.1951, 1, -0.9808, -0.3827, 1, -0.9239, -0.7071, 1, -0.7071, -0.5556, 1, -0.8315, -0.7071, 1, -0.7071, -0.9239, 1, -0.3827, -0.8315, 1, -0.5556, -0.9239, 1, -0.3827, -1, 1, 0, -0.9808, 1, -0.1951, -1, 1, 0, -0.9239, 1, 0.3827, -0.9808, 1, 0.1951, -0.9239, 1, 0.3827, -0.7071, 1, 0.7071, -0.8315, 1, 0.5556, -0.7071, 1, 0.7071, -0.3827, 1, 0.9239, -0.5556, 1, 0.8315, -0.3827, 1, 0.9239, 0, 1, 1, -0.1951, 1, 0.9808, 0, 1, 1, 0.3827, 1, 0.9239, 0.1951, 1, 0.9808, 0.3827, 1, 0.9239, 0.7071, 1, 0.7071, 0.5556, 1, 0.8315, 0.7071, 1, 0.7071, 0.9239, 1, 0.3827, 0.8315, 1, 0.5556, 0.9239, 1, 0.3827, 1, 1, 0, 0.9808, 1, 0.1951, 1, 1, 0, 0.9239, 1, -0.3827, 0.9808, 1, -0.1951, 0.9239, 1, -0.3827, 0.7071, 1, -0.7071, 0.8315, 1, -0.5556, 0.7071, 1, -0.7071, 0.3827, 1, -0.9239, 0.5556, 1, -0.8315, 0.3827, 1, -0.9239, -0.3827, 1, -0.9239, 0, 1, -1, -0.3827, 1, -0.9239, -0.9239, 1, -0.3827, -0.7071, 1, -0.7071, -0.9239, 1, -0.3827, -0.9239, 1, 0.3827, -1, 1, 0, -0.9239, 1, 0.3827, -0.3827, 1, 0.9239, -0.7071, 1, 0.7071, -0.3827, 1, 0.9239, 0.3827, 1, 0.9239, 0, 1, 1, 0.3827, 1, 0.9239, 0.9239, 1, 0.3827, 0.7071, 1, 0.7071, 0.9239, 1, 0.3827, 0.9239, 1, -0.3827, 1, 1, 0, 0.9239, 1, -0.3827, 0.3827, 1, -0.9239, 0.7071, 1, -0.7071, 0.3827, 1, -0.9239, -0.9239, 1, -0.3827, -0.3827, 1, -0.9239, -0.9239, 1, -0.3827, -0.3827, 1, 0.9239, -0.9239, 1, 0.3827, -0.3827, 1, 0.9239, 0.9239, 1, 0.3827, 0.3827, 1, 0.9239, 0.9239, 1, 0.3827, 0.3827, 1, -0.9239, 0.9239, 1, -0.3827, 0.3827, 1, -0.9239, -0.3827, 1, 0.9239, -0.9239, 1, -0.3827, -0.3827, 1, 0.9239, 0.3827, 1, -0.9239, 0.9239, 1, 0.3827, -0.3827, -1, -0.9239, -0.1951, 1, -0.9808, -0.3827, 1, -0.9239, -0.3827, -1, -0.9239, -0.1951, -1, -0.9808, -0.1951, 1, -0.9808, -0.1951, -1, -0.9808, 0, 1, -1, -0.1951, 1, -0.9808, -0.1951, -1, -0.9808, 0, -1, -1, 0, 1, -1, -0.1951, -1, -0.9808, 0.1951, -1, -0.9808, 0, -1, -1, 0.1951, -1, -0.9808, 0.5556, -1, -0.8315, 0.3827, -1, -0.9239, 0.5556, -1, -0.8315, 0.8315, -1, -0.5556, 0.7071, -1, -0.7071, 0.8315, -1, -0.5556, 0.9808, -1, -0.1951, 0.9239, -1, -0.3827, 0.9808, -1, -0.1951, 0.9808, -1, 0.1951, 1, -1, 0, 0.9808, -1, 0.1951, 0.8315, -1, 0.5556, 0.9239, -1, 0.3827, 0.8315, -1, 0.5556, 0.5556, -1, 0.8315, 0.7071, -1, 0.7071, 0.5556, -1, 0.8315, 0.1951, -1, 0.9808, 0.3827, -1, 0.9239, 0.1951, -1, 0.9808, -0.1951, -1, 0.9808, 0, -1, 1, -0.1951, -1, 0.9808, -0.5556, -1, 0.8315, -0.3827, -1, 0.9239, -0.5556, -1, 0.8315, -0.8315, -1, 0.5556, -0.7071, -1, 0.7071, -0.8315, -1, 0.5556, -0.9808, -1, 0.1951, -0.9239, -1, 0.3827, -0.9808, -1, 0.1951, -0.9808, -1, -0.1951, -1, -1, 0, -0.9808, -1, -0.1951, -0.8315, -1, -0.5556, -0.9239, -1, -0.3827, -0.8315, -1, -0.5556, -0.5556, -1, -0.8315, -0.7071, -1, -0.7071, -0.5556, -1, -0.8315, -0.1951, -1, -0.9808, -0.3827, -1, -0.9239, -0.1951, -1, -0.9808, 0.5556, -1, -0.8315, 0.1951, -1, -0.9808, 0.5556, -1, -0.8315, 0.9808, -1, -0.1951, 0.8315, -1, -0.5556, 0.9808, -1, -0.1951, 0.8315, -1, 0.5556, 0.9808, -1, 0.1951, 0.8315, -1, 0.5556, 0.1951, -1, 0.9808, 0.5556, -1, 0.8315, 0.1951, -1, 0.9808, -0.5556, -1, 0.8315, -0.1951, -1, 0.9808, -0.5556, -1, 0.8315, -0.9808, -1, 0.1951, -0.8315, -1, 0.5556, -0.9808, -1, 0.1951, -0.8315, -1, -0.5556, -0.9808, -1, -0.1951, -0.8315, -1, -0.5556, -0.1951, -1, -0.9808, -0.5556, -1, -0.8315, -0.1951, -1, -0.9808, 0.9808, -1, -0.1951, 0.5556, -1, -0.8315, 0.9808, -1, -0.1951, 0.1951, -1, 0.9808, 0.8315, -1, 0.5556, 0.1951, -1, 0.9808, -0.9808, -1, 0.1951, -0.5556, -1, 0.8315, -0.9808, -1, 0.1951, -0.1951, -1, -0.9808, -0.8315, -1, -0.5556, -0.1951, -1, -0.9808, 0.1951, -1, 0.9808, 0.9808, -1, -0.1951, 0.1951, -1, 0.9808, -0.1951, -1, -0.9808, -0.9808, -1, 0.1951) @@ -24,7 +25,10 @@ script = ExtResource("2_mnk2b") stream = ExtResource("3_hu2uh") volume_db = -6.19 -[node name="Reset" type="AudioStreamPlayer" parent="." index="1"] +[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 diff --git a/Scripts/Safe.gd b/Scripts/Safe.gd index 460a2c0..8367c1e 100644 --- a/Scripts/Safe.gd +++ b/Scripts/Safe.gd @@ -14,6 +14,7 @@ func add_sequence_guess(dir): i += 1 if (i == sequence.size()): $Door.visible = false + $Open.playing = true i = 0 else: $Reset.playing = true