From 0b0cb0ddf1da36dfa647d5f9f5c91098141d0292 Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Fri, 22 Nov 2024 22:07:41 -0700 Subject: [PATCH] UI sparkle SFX --- asset_credits.org | 8 ++++++ assets/sound/sfx/player/sparkle.wav | 3 ++ assets/sound/sfx/player/sparkle.wav.import | 24 ++++++++++++++++ assets/sound/sfx/ui/ecofuture1.wav | 3 ++ assets/sound/sfx/ui/ecofuture1.wav.import | 24 ++++++++++++++++ assets/sound/sfx/ui/ecofuture2.wav | 3 ++ assets/sound/sfx/ui/ecofuture2.wav.import | 24 ++++++++++++++++ assets/sound/sfx/ui/ecofuture3.wav | 3 ++ assets/sound/sfx/ui/ecofuture3.wav.import | 24 ++++++++++++++++ assets/sound/sfx/ui/ecofuture4.wav | 3 ++ assets/sound/sfx/ui/ecofuture4.wav.import | 24 ++++++++++++++++ src/player/shot_setup/shot_setup.tscn | 1 + src/ui/shot_hud/shot_hud.tscn | 32 +++++++++++++++++++++- 13 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 assets/sound/sfx/player/sparkle.wav create mode 100644 assets/sound/sfx/player/sparkle.wav.import create mode 100644 assets/sound/sfx/ui/ecofuture1.wav create mode 100644 assets/sound/sfx/ui/ecofuture1.wav.import create mode 100644 assets/sound/sfx/ui/ecofuture2.wav create mode 100644 assets/sound/sfx/ui/ecofuture2.wav.import create mode 100644 assets/sound/sfx/ui/ecofuture3.wav create mode 100644 assets/sound/sfx/ui/ecofuture3.wav.import create mode 100644 assets/sound/sfx/ui/ecofuture4.wav create mode 100644 assets/sound/sfx/ui/ecofuture4.wav.import diff --git a/asset_credits.org b/asset_credits.org index 5131791..dc9bf0f 100644 --- a/asset_credits.org +++ b/asset_credits.org @@ -110,3 +110,11 @@ Asset credits *** Author: DavidDumaisAudio *** License: Pixabay + +** ecofuture.wav + +*** Retrieved from https://freesound.org/people/soneproject/sounds/346425/ + +*** Author: soneproject + +*** License: CC BY 3.0 diff --git a/assets/sound/sfx/player/sparkle.wav b/assets/sound/sfx/player/sparkle.wav new file mode 100644 index 0000000..ad08734 --- /dev/null +++ b/assets/sound/sfx/player/sparkle.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56449ee6649074339e452607d40d42a7d9ae37372f84ad0ca8facc661a0a8f40 +size 991120 diff --git a/assets/sound/sfx/player/sparkle.wav.import b/assets/sound/sfx/player/sparkle.wav.import new file mode 100644 index 0000000..9401566 --- /dev/null +++ b/assets/sound/sfx/player/sparkle.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bvl3vpj3bg04r" +path="res://.godot/imported/sparkle.wav-e0e2ee28a5f3eebbbd6eb43c0562e56d.sample" + +[deps] + +source_file="res://assets/sound/sfx/player/sparkle.wav" +dest_files=["res://.godot/imported/sparkle.wav-e0e2ee28a5f3eebbbd6eb43c0562e56d.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/assets/sound/sfx/ui/ecofuture1.wav b/assets/sound/sfx/ui/ecofuture1.wav new file mode 100644 index 0000000..b33d861 --- /dev/null +++ b/assets/sound/sfx/ui/ecofuture1.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c7661d59d373f2ffd07bfffb43a6ec6170c2ecd6583d115ad8dffa5ec319bcb +size 264644 diff --git a/assets/sound/sfx/ui/ecofuture1.wav.import b/assets/sound/sfx/ui/ecofuture1.wav.import new file mode 100644 index 0000000..cdc5c19 --- /dev/null +++ b/assets/sound/sfx/ui/ecofuture1.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dxoo3qgkkhbpj" +path="res://.godot/imported/ecofuture1.wav-1ce9e72eda25c7270fd356e129c3353b.sample" + +[deps] + +source_file="res://assets/sound/sfx/ui/ecofuture1.wav" +dest_files=["res://.godot/imported/ecofuture1.wav-1ce9e72eda25c7270fd356e129c3353b.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/assets/sound/sfx/ui/ecofuture2.wav b/assets/sound/sfx/ui/ecofuture2.wav new file mode 100644 index 0000000..dc23d6a --- /dev/null +++ b/assets/sound/sfx/ui/ecofuture2.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93fdcf3843e7b0d1a9fad5a1e3f1262b7d0b80d48c30e80b53fef7549833654d +size 363872 diff --git a/assets/sound/sfx/ui/ecofuture2.wav.import b/assets/sound/sfx/ui/ecofuture2.wav.import new file mode 100644 index 0000000..dd1d727 --- /dev/null +++ b/assets/sound/sfx/ui/ecofuture2.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://8uynlpios7u1" +path="res://.godot/imported/ecofuture2.wav-72a1f01a22cb0f38074ccdef6e2dc37f.sample" + +[deps] + +source_file="res://assets/sound/sfx/ui/ecofuture2.wav" +dest_files=["res://.godot/imported/ecofuture2.wav-72a1f01a22cb0f38074ccdef6e2dc37f.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/assets/sound/sfx/ui/ecofuture3.wav b/assets/sound/sfx/ui/ecofuture3.wav new file mode 100644 index 0000000..086b7f4 --- /dev/null +++ b/assets/sound/sfx/ui/ecofuture3.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e8272e7f8d2e672db132593657add74d59f82c889161a4010c6893f0d30a078 +size 1358620 diff --git a/assets/sound/sfx/ui/ecofuture3.wav.import b/assets/sound/sfx/ui/ecofuture3.wav.import new file mode 100644 index 0000000..4fbd8c3 --- /dev/null +++ b/assets/sound/sfx/ui/ecofuture3.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c8bxu5lusqevv" +path="res://.godot/imported/ecofuture3.wav-cfc8eb28b0ae99aa20757172461b6439.sample" + +[deps] + +source_file="res://assets/sound/sfx/ui/ecofuture3.wav" +dest_files=["res://.godot/imported/ecofuture3.wav-cfc8eb28b0ae99aa20757172461b6439.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/assets/sound/sfx/ui/ecofuture4.wav b/assets/sound/sfx/ui/ecofuture4.wav new file mode 100644 index 0000000..ce6ad35 --- /dev/null +++ b/assets/sound/sfx/ui/ecofuture4.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:578240147304c360ea448f5ff8b91a0f253c77ad6e9995930763d22a00ffe138 +size 363872 diff --git a/assets/sound/sfx/ui/ecofuture4.wav.import b/assets/sound/sfx/ui/ecofuture4.wav.import new file mode 100644 index 0000000..e8a17b4 --- /dev/null +++ b/assets/sound/sfx/ui/ecofuture4.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cuupx50lrp02p" +path="res://.godot/imported/ecofuture4.wav-5123fe535484e1633f20122f24129c06.sample" + +[deps] + +source_file="res://assets/sound/sfx/ui/ecofuture4.wav" +dest_files=["res://.godot/imported/ecofuture4.wav-5123fe535484e1633f20122f24129c06.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/src/player/shot_setup/shot_setup.tscn b/src/player/shot_setup/shot_setup.tscn index 1b268ba..9df01a7 100644 --- a/src/player/shot_setup/shot_setup.tscn +++ b/src/player/shot_setup/shot_setup.tscn @@ -500,6 +500,7 @@ libraries = { [node name="ExplosionSFXPlayer" type="AudioStreamPlayer3D" parent="ExplosionMesh"] stream = SubResource("AudioStreamRandomizer_8natr") unit_size = 60.0 +bus = &"SFX" [node name="PlayerLabel" type="Label3D" parent="."] unique_name_in_owner = true diff --git a/src/ui/shot_hud/shot_hud.tscn b/src/ui/shot_hud/shot_hud.tscn index 17bbc7e..f0535fc 100644 --- a/src/ui/shot_hud/shot_hud.tscn +++ b/src/ui/shot_hud/shot_hud.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=35 format=3 uid="uid://c4ifdiohng830"] +[gd_scene load_steps=36 format=3 uid="uid://c4ifdiohng830"] [ext_resource type="Script" path="res://src/ui/shot_hud/shot_hud.gd" id="1_x5b4c"] [ext_resource type="Shader" path="res://src/shaders/canvas_retro.gdshader" id="1_ybxxp"] [ext_resource type="PackedScene" uid="uid://445qd7m4qe2j" path="res://src/ui/shot_hud/club_selector/club_selector.tscn" id="2_1hdub"] +[ext_resource type="AudioStream" uid="uid://c8bxu5lusqevv" path="res://assets/sound/sfx/ui/ecofuture3.wav" id="2_5f3rs"] [ext_resource type="Script" path="res://src/ui/decorations/rumbler.gd" id="3_6groq"] [ext_resource type="Texture2D" uid="uid://b5812y3pmmgg5" path="res://assets/ui/gauge_patch.png" id="4_5kcpe"] [ext_resource type="Texture2D" uid="uid://76fjx2ukavqe" path="res://assets/ui/power_gauge_fill.png" id="5_3i1yq"] @@ -74,6 +75,18 @@ tracks/4/keys = { "points": PackedFloat32Array(0.5, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0) } +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = false +tracks/5/path = NodePath("AudioStreamPlayer:playing") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} [sub_resource type="Animation" id="Animation_cwotn"] resource_name = "display" @@ -137,6 +150,18 @@ tracks/4/keys = { "points": PackedFloat32Array(0.5, -0.25, 0, 0.5, -0.055, 0.5, -0.4, 0.059, 0.233, -0.456, 1.25, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0, 2, 2.4) } +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("AudioStreamPlayer:playing") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0.1), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} [sub_resource type="AnimationLibrary" id="AnimationLibrary_2a0gn"] _data = { @@ -598,6 +623,11 @@ libraries = { "": SubResource("AnimationLibrary_2a0gn") } +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="WoahNiceFeedback"] +stream = ExtResource("2_5f3rs") +volume_db = -3.0 +bus = &"SFX" + [node name="WastedFeedback" type="RichTextLabel" parent="."] visible = false custom_minimum_size = Vector2(1400, 0)