From bc5fd6fa96b57f1ff3a03537f7598ca74878072b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 14 Oct 2023 03:15:48 +0200 Subject: [PATCH] Improve sounds --- converters/copper_to_silver/copper_converter.tscn | 1 + .../gold_to_coaldiamond/coal_diamond_converter.tscn | 7 +++---- converters/gold_to_gem/gold_converter.tscn | 1 + converters/silver_to_gold/silver_converter.tscn | 1 + game/game.tscn | 11 +++++++++-- project.godot | 4 ++++ 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/converters/copper_to_silver/copper_converter.tscn b/converters/copper_to_silver/copper_converter.tscn index acfb121..4906f8f 100644 --- a/converters/copper_to_silver/copper_converter.tscn +++ b/converters/copper_to_silver/copper_converter.tscn @@ -119,6 +119,7 @@ debug_color = Color(0, 0.701961, 0.188235, 0.419608) stream = ExtResource("9_1aocf") volume_db = -8.0 pitch_scale = 2.0 +max_polyphony = 8 [node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("10_72f5c")] working_sound = NodePath("SoundWorking") diff --git a/converters/gold_to_coaldiamond/coal_diamond_converter.tscn b/converters/gold_to_coaldiamond/coal_diamond_converter.tscn index 4fd9591..5afa31f 100644 --- a/converters/gold_to_coaldiamond/coal_diamond_converter.tscn +++ b/converters/gold_to_coaldiamond/coal_diamond_converter.tscn @@ -132,6 +132,7 @@ debug_color = Color(0, 0.701961, 0.188235, 0.419608) stream = ExtResource("10_p3n1d") volume_db = -8.0 pitch_scale = 2.0 +max_polyphony = 8 [node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("11_svms0")] working_sound = NodePath("SoundWorking") @@ -141,10 +142,9 @@ position = Vector2(0, 25) stream = ExtResource("10_hy4ck") pitch_scale = 1.08 -[node name="Spawner" parent="." node_paths=PackedStringArray("target", "sound_complete") instance=ExtResource("8_yel0k")] +[node name="Spawner" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("8_yel0k")] position = Vector2(0, 10) scene = ExtResource("10_ry7ak") -target = NodePath("") buffer_cap = 1 spawn_rect = Rect2(-8, 0, 16, 4) spawn_rotation_degrees_min = 80.0 @@ -162,10 +162,9 @@ debug_color = Color(0.701961, 0, 0, 0.419608) position = Vector2(0, 2) stream = ExtResource("11_601lg") -[node name="Spawner2" parent="." node_paths=PackedStringArray("target", "sound_complete") instance=ExtResource("8_yel0k")] +[node name="Spawner2" parent="." node_paths=PackedStringArray("sound_complete") instance=ExtResource("8_yel0k")] position = Vector2(0, 10) scene = ExtResource("11_ekhmr") -target = NodePath("") buffer_cap = 1 spawn_rect = Rect2(-8, 0, 16, 4) spawn_rotation_degrees_min = 80.0 diff --git a/converters/gold_to_gem/gold_converter.tscn b/converters/gold_to_gem/gold_converter.tscn index ea7d394..c5952a4 100644 --- a/converters/gold_to_gem/gold_converter.tscn +++ b/converters/gold_to_gem/gold_converter.tscn @@ -129,6 +129,7 @@ debug_color = Color(0, 0.701961, 0.188235, 0.419608) stream = ExtResource("10_n1vu0") volume_db = -8.0 pitch_scale = 2.0 +max_polyphony = 8 [node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("11_tm4f6")] working_sound = NodePath("SoundWorking") diff --git a/converters/silver_to_gold/silver_converter.tscn b/converters/silver_to_gold/silver_converter.tscn index b962ce3..60a2fae 100644 --- a/converters/silver_to_gold/silver_converter.tscn +++ b/converters/silver_to_gold/silver_converter.tscn @@ -106,6 +106,7 @@ debug_color = Color(0, 0.701961, 0.188235, 0.419608) stream = ExtResource("8_0jhl8") volume_db = -8.0 pitch_scale = 2.0 +max_polyphony = 8 [node name="WorkingTimer" parent="." node_paths=PackedStringArray("working_sound") instance=ExtResource("9_8xv87")] working_sound = NodePath("SoundWorking") diff --git a/game/game.tscn b/game/game.tscn index 237321f..1250a31 100644 --- a/game/game.tscn +++ b/game/game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=25 format=3 uid="uid://c3rxmcwa5nqng"] +[gd_scene load_steps=26 format=3 uid="uid://c3rxmcwa5nqng"] [ext_resource type="Script" path="res://game/game.gd" id="1_i3ly0"] [ext_resource type="PackedScene" uid="uid://bllsprv8orpn4" path="res://bottle/bottle.tscn" id="1_y7o2l"] @@ -19,6 +19,7 @@ [ext_resource type="PackedScene" uid="uid://du3005kwybbrh" path="res://entity/coin_gold/coin_gold.tscn" id="15_trrh7"] [ext_resource type="PackedScene" uid="uid://qtk4tm6l367w" path="res://interface/ghost/ghost.tscn" id="16_8vhx6"] [ext_resource type="PackedScene" uid="uid://bawprh8kluilq" path="res://entity/gem/gem.tscn" id="16_20aff"] +[ext_resource type="AudioStream" uid="uid://cvrbqm56njwoe" path="res://audio/conversione/risucchio.wav" id="19_rvt56"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_rh35r"] size = Vector2(240, 384) @@ -153,8 +154,9 @@ debug_color = Color(0, 0.6, 0.701961, 0) [node name="ActionTimer" parent="Spawners/CheatGemSpawner" instance=ExtResource("13_y2562")] action = "cheat_spawn_gem" -[node name="StoreCollector" parent="." instance=ExtResource("9_evdhb")] +[node name="StoreCollector" parent="." node_paths=PackedStringArray("sound_absorb") instance=ExtResource("9_evdhb")] position = Vector2(135, 0) +sound_absorb = NodePath("SoundAbsorb") metadata/_edit_lock_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="StoreCollector"] @@ -209,6 +211,11 @@ text = "250" horizontal_alignment = 1 vertical_alignment = 1 +[node name="SoundAbsorb" type="AudioStreamPlayer2D" parent="StoreCollector"] +stream = ExtResource("19_rvt56") +pitch_scale = 1.4 +max_polyphony = 8 + [node name="UniversalCollectorTop" parent="." instance=ExtResource("9_7op48")] position = Vector2(135, -270) metadata/_edit_lock_ = true diff --git a/project.godot b/project.godot index d5cbc67..a04af10 100644 --- a/project.godot +++ b/project.godot @@ -25,6 +25,10 @@ window/size/mode=2 window/stretch/aspect="keep_height" window/handheld/orientation=1 +[editor] + +movie_writer/movie_file="/store/Documents/Workspaces/Steffo99/ld54/build/movie.avi" + [input] gravity_up={