diff --git a/assets/sfx/grunk/splat1.wav b/assets/sfx/grunk/splat1.wav new file mode 100644 index 0000000..c5f9941 Binary files /dev/null and b/assets/sfx/grunk/splat1.wav differ diff --git a/assets/sfx/grunk/splat1.wav.import b/assets/sfx/grunk/splat1.wav.import new file mode 100644 index 0000000..443debf --- /dev/null +++ b/assets/sfx/grunk/splat1.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://di0j2xhgfc78s" +path="res://.godot/imported/splat1.wav-0c184c3612f6e8dc49404de6420bfc5c.sample" + +[deps] + +source_file="res://assets/sfx/grunk/splat1.wav" +dest_files=["res://.godot/imported/splat1.wav-0c184c3612f6e8dc49404de6420bfc5c.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=2 diff --git a/assets/sfx/grunk/splat2.wav b/assets/sfx/grunk/splat2.wav new file mode 100644 index 0000000..36b54ca Binary files /dev/null and b/assets/sfx/grunk/splat2.wav differ diff --git a/assets/sfx/grunk/splat2.wav.import b/assets/sfx/grunk/splat2.wav.import new file mode 100644 index 0000000..10057a2 --- /dev/null +++ b/assets/sfx/grunk/splat2.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://d1w5gfmjj7tjk" +path="res://.godot/imported/splat2.wav-d793ff699626551d45adb56e386a2f81.sample" + +[deps] + +source_file="res://assets/sfx/grunk/splat2.wav" +dest_files=["res://.godot/imported/splat2.wav-d793ff699626551d45adb56e386a2f81.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=2 diff --git a/src/effects/grunk_splatter.tscn b/src/effects/grunk_splatter.tscn index 3bc9b51..d1db77f 100644 --- a/src/effects/grunk_splatter.tscn +++ b/src/effects/grunk_splatter.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=17 format=3 uid="uid://xlt78xc1tmkl"] +[gd_scene load_steps=20 format=3 uid="uid://xlt78xc1tmkl"] [ext_resource type="Texture2D" uid="uid://cgwgmxwjgwbwr" path="res://assets/particles/splatter_2.png" id="1_5xu2x"] [ext_resource type="Texture2D" uid="uid://bhoai6xv53tqm" path="res://assets/particles/splatter_1.png" id="2_bt63p"] +[ext_resource type="AudioStream" uid="uid://di0j2xhgfc78s" path="res://assets/sfx/grunk/splat1.wav" id="3_t00bd"] +[ext_resource type="AudioStream" uid="uid://d1w5gfmjj7tjk" path="res://assets/sfx/grunk/splat2.wav" id="4_2iem1"] [sub_resource type="Gradient" id="Gradient_5xu2x"] offsets = PackedFloat32Array(0, 0.291304, 0.526087, 1) @@ -90,6 +92,13 @@ particles_anim_loop = false material = SubResource("StandardMaterial3D_ckw5w") size = Vector2(2, 2) +[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_6adkd"] +playback_mode = 1 +random_pitch = 1.2 +streams_count = 2 +stream_0/stream = ExtResource("3_t00bd") +stream_1/stream = ExtResource("4_2iem1") + [node name="GrunkSplatter" type="GPUParticles3D"] sorting_offset = 9.0 amount = 64 @@ -113,4 +122,11 @@ wait_time = 0.3 one_shot = true autostart = true +[node name="SplatterSFX" type="AudioStreamPlayer3D" parent="."] +stream = SubResource("AudioStreamRandomizer_6adkd") +volume_db = -20.0 +unit_size = 6.0 +autoplay = true +bus = &"SFX" + [connection signal="timeout" from="FreeTimer" to="." method="queue_free"] diff --git a/vault/TODO.md b/vault/TODO.md index 0d118d5..c12febd 100644 --- a/vault/TODO.md +++ b/vault/TODO.md @@ -60,6 +60,7 @@ - [x] switch OK - [x] switch activation - [x] bulkhead opening + - [x] grunk nodule splatter - [x] grunk alarm shriek - [ ] grunk relay pulse - [x] grunk heartbeat diff --git a/vault/assets/asset credits.md b/vault/assets/asset credits.md index b867000..1790a4a 100644 --- a/vault/assets/asset credits.md +++ b/vault/assets/asset credits.md @@ -93,4 +93,8 @@ - CC0 - retrieved from https://freesound.org/people/Woodingp/sounds/116642/ - assets/sfx/grunk/heartbeat.wav - - modified \ No newline at end of file + - "splat.wav" + - author: zolopher + - CC0 + - retrieved from https://freesound.org/people/zolopher/sounds/44203/ + - assets/sfx/grunk/splat*.wav \ No newline at end of file