Sound effects

This commit is contained in:
MaddoScientisto 2025-03-01 23:46:25 +01:00
commit 60ab375572
41 changed files with 504 additions and 15 deletions

2
.gitattributes vendored
View file

@ -5,4 +5,6 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.flac filter=lfs diff=lfs merge=lfs -text
*.ogg filter=lfs diff=lfs merge=lfs -text
*.aseprite filter=lfs diff=lfs merge=lfs -text

View file

@ -1,4 +1,4 @@
[gd_resource type="Resource" script_class="CreditsCollection" load_steps=5 format=3 uid="uid://cojsc1rtf41i1"]
[gd_resource type="Resource" script_class="CreditsCollection" load_steps=10 format=3 uid="uid://cojsc1rtf41i1"]
[ext_resource type="Script" uid="uid://buq8eurx510ps" path="res://Scripts/Resources/CreditsCollection.cs" id="1_0bwsf"]
[ext_resource type="Script" uid="uid://bc4f4ggvk3ktf" path="res://Scripts/Resources/CreditsEntry.cs" id="1_aaqha"]
@ -15,7 +15,37 @@ Name = "alphatrooper18"
Contribution = "Sound Effects"
metadata/_custom_type_script = "uid://bc4f4ggvk3ktf"
[sub_resource type="Resource" id="Resource_aaqha"]
script = ExtResource("1_aaqha")
Name = "jalastram"
Contribution = "Explosion SFX"
metadata/_custom_type_script = "uid://bc4f4ggvk3ktf"
[sub_resource type="Resource" id="Resource_gr2tg"]
script = ExtResource("1_aaqha")
Name = "LittleRobotSoundFactory"
Contribution = "UI Sounds"
metadata/_custom_type_script = "uid://bc4f4ggvk3ktf"
[sub_resource type="Resource" id="Resource_b8hlh"]
script = ExtResource("1_aaqha")
Name = "Artninja"
Contribution = "Sounds"
metadata/_custom_type_script = "uid://bc4f4ggvk3ktf"
[sub_resource type="Resource" id="Resource_gbaov"]
script = ExtResource("1_aaqha")
Name = "aj_heels"
Contribution = "Sounds"
metadata/_custom_type_script = "uid://bc4f4ggvk3ktf"
[sub_resource type="Resource" id="Resource_jkmrk"]
script = ExtResource("1_aaqha")
Name = "guillermochicasonido"
Contribution = "Teleporter Sound"
metadata/_custom_type_script = "uid://bc4f4ggvk3ktf"
[resource]
script = ExtResource("1_0bwsf")
Credits = Array[ExtResource("1_aaqha")]([SubResource("Resource_vda0h"), SubResource("Resource_j7pkh")])
Credits = Array[ExtResource("1_aaqha")]([SubResource("Resource_vda0h"), SubResource("Resource_j7pkh"), SubResource("Resource_aaqha"), SubResource("Resource_gr2tg"), SubResource("Resource_b8hlh"), SubResource("Resource_gbaov"), SubResource("Resource_jkmrk")])
metadata/_custom_type_script = "uid://buq8eurx510ps"

BIN
SFX/270641__phantastonia__alarm2.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://blohh20jktoyo"
path="res://.godot/imported/270641__phantastonia__alarm2.wav-7e5dfeec67f2ceec352925780011b0c5.sample"
[deps]
source_file="res://SFX/270641__phantastonia__alarm2.wav"
dest_files=["res://.godot/imported/270641__phantastonia__alarm2.wav-7e5dfeec67f2ceec352925780011b0c5.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=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2

BIN
SFX/288960__littlerobotsoundfactory__click_electronic_10.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://bxadb7f8hh7cq"
path="res://.godot/imported/288960__littlerobotsoundfactory__click_electronic_10.wav-bc1a6a8f1fb97b7e2244dcca7e5e9ce8.sample"
[deps]
source_file="res://SFX/288960__littlerobotsoundfactory__click_electronic_10.wav"
dest_files=["res://.godot/imported/288960__littlerobotsoundfactory__click_electronic_10.wav-bc1a6a8f1fb97b7e2244dcca7e5e9ce8.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

BIN
SFX/288963__littlerobotsoundfactory__click_electronic_14.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://bjvklk7qmlivd"
path="res://.godot/imported/288963__littlerobotsoundfactory__click_electronic_14.wav-bf5a74022d2147ef0eade72148d29655.sample"
[deps]
source_file="res://SFX/288963__littlerobotsoundfactory__click_electronic_14.wav"
dest_files=["res://.godot/imported/288963__littlerobotsoundfactory__click_electronic_14.wav-bf5a74022d2147ef0eade72148d29655.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

BIN
SFX/317749__jalastram__sfx_explosion_02.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://sxai4dj8pax5"
path="res://.godot/imported/317749__jalastram__sfx_explosion_02.wav-6c60f38748ed65acd1389542cbe9145e.sample"
[deps]
source_file="res://SFX/317749__jalastram__sfx_explosion_02.wav"
dest_files=["res://.godot/imported/317749__jalastram__sfx_explosion_02.wav-6c60f38748ed65acd1389542cbe9145e.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

BIN
SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://ds84e0m5l4i5d"
path="res://.godot/imported/404752__owlstorm__retro-video-game-sfx-explode-3.wav-f2368af2ca17d93febfbad8077616ffb.sample"
[deps]
source_file="res://SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav"
dest_files=["res://.godot/imported/404752__owlstorm__retro-video-game-sfx-explode-3.wav-f2368af2ca17d93febfbad8077616ffb.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

BIN
SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://dmsnvo8kdjyt8"
path="res://.godot/imported/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav-52a6907c841cbc87a669aed9f586dc2e.sample"
[deps]
source_file="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav"
dest_files=["res://.godot/imported/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav-52a6907c841cbc87a669aed9f586dc2e.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

BIN
SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://p5n7ijw2qvxy"
path="res://.godot/imported/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav-ef2eb5c390d2dbbaa464a5d9f55aff34.sample"
[deps]
source_file="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav"
dest_files=["res://.godot/imported/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav-ef2eb5c390d2dbbaa464a5d9f55aff34.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

BIN
SFX/520546__aj_heels__supernovasmall.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://nfb6ofmccu2e"
path="res://.godot/imported/520546__aj_heels__supernovasmall.wav-e707793dafe22b56eef352dcd3710118.sample"
[deps]
source_file="res://SFX/520546__aj_heels__supernovasmall.wav"
dest_files=["res://.godot/imported/520546__aj_heels__supernovasmall.wav-e707793dafe22b56eef352dcd3710118.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

BIN
SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://b0ficxrbhf8om"
path="res://.godot/imported/615532__crash_358__sci-fi-ui-button-sound-005.wav-625455ac2282e452ebf6bae74706405f.sample"
[deps]
source_file="res://SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav"
dest_files=["res://.godot/imported/615532__crash_358__sci-fi-ui-button-sound-005.wav-625455ac2282e452ebf6bae74706405f.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

BIN
SFX/Artninja_Forcefield_Disable.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://ccxjo86nvcl54"
path="res://.godot/imported/Artninja_Forcefield_Disable.wav-a992ba1711263fe8f185a69427f2413c.sample"
[deps]
source_file="res://SFX/Artninja_Forcefield_Disable.wav"
dest_files=["res://.godot/imported/Artninja_Forcefield_Disable.wav-a992ba1711263fe8f185a69427f2413c.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

BIN
SFX/Artninja_Forcefield_Enable.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://ciuv2acfujlys"
path="res://.godot/imported/Artninja_Forcefield_Enable.wav-a054b9d753fb08f0c0e90332e06a0e1c.sample"
[deps]
source_file="res://SFX/Artninja_Forcefield_Enable.wav"
dest_files=["res://.godot/imported/Artninja_Forcefield_Enable.wav-a054b9d753fb08f0c0e90332e06a0e1c.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

BIN
SFX/teleporter_end.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://cq1880lc1iwsa"
path="res://.godot/imported/teleporter_end.wav-4e821f04f1b6840bbf254c2e24839f2c.sample"
[deps]
source_file="res://SFX/teleporter_end.wav"
dest_files=["res://.godot/imported/teleporter_end.wav-4e821f04f1b6840bbf254c2e24839f2c.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

BIN
SFX/teleporter_start.wav (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://c4uxtkynonomm"
path="res://.godot/imported/teleporter_start.wav-b867ab372932963a23eb61aed7fcdbe2.sample"
[deps]
source_file="res://SFX/teleporter_start.wav"
dest_files=["res://.godot/imported/teleporter_start.wav-b867ab372932963a23eb61aed7fcdbe2.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

View file

@ -1,9 +1,11 @@
[gd_scene load_steps=25 format=3 uid="uid://b0gpbkxdfbnjh"]
[gd_scene load_steps=27 format=3 uid="uid://b0gpbkxdfbnjh"]
[ext_resource type="Script" uid="uid://b2bpqbfeqi4ge" path="res://Scripts/Activables/ForceField.cs" id="1_yxhr6"]
[ext_resource type="Texture2D" uid="uid://gc24sjyj47x6" path="res://Sprites/Actors/ForceFieldHorizontal.png" id="2_12wxm"]
[ext_resource type="Shader" uid="uid://0ruey5bjl7mh" path="res://Shaders/Blink.gdshader" id="2_q7pky"]
[ext_resource type="Shader" uid="uid://cjdl1m3psohju" path="res://Shaders/scanlines_static.tres" id="2_qbobr"]
[ext_resource type="AudioStream" uid="uid://ciuv2acfujlys" path="res://SFX/Artninja_Forcefield_Enable.wav" id="5_8cguw"]
[ext_resource type="AudioStream" uid="uid://ccxjo86nvcl54" path="res://SFX/Artninja_Forcefield_Disable.wav" id="6_3s51g"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fipgw"]
shader = ExtResource("2_q7pky")
@ -175,4 +177,13 @@ gravity_scale = 0.0
visible = false
shape = SubResource("RectangleShape2D_f2rl6")
[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."]
position = Vector2(0, 1)
stream = ExtResource("5_8cguw")
max_distance = 200.0
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("6_3s51g")
max_distance = 200.0
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=5 format=3 uid="uid://byms2dhliyux0"]
[gd_scene load_steps=7 format=3 uid="uid://byms2dhliyux0"]
[ext_resource type="Script" uid="uid://c1q7esgfnbvsf" path="res://Scripts/Activables/Teleporter.cs" id="1_juavy"]
[ext_resource type="SpriteFrames" uid="uid://w4jlaryen3we" path="res://Resources/Sprites/teleporter.tres" id="2_k58t7"]
[ext_resource type="AudioStream" uid="uid://c4uxtkynonomm" path="res://SFX/teleporter_start.wav" id="3_ox1iw"]
[ext_resource type="AudioStream" uid="uid://cq1880lc1iwsa" path="res://SFX/teleporter_end.wav" id="4_ildd2"]
[sub_resource type="CircleShape2D" id="CircleShape2D_kwj8m"]
radius = 4.12311
@ -38,7 +40,15 @@ frame_progress = 0.462812
z_index = 2
emitting = false
amount = 50
process_material = SubResource("ParticleProcessMaterial_we5sc")
lifetime = 0.8
process_material = SubResource("ParticleProcessMaterial_we5sc")
[node name="TeleportStart" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_ox1iw")
max_distance = 100.0
[node name="TeleportEnd" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_ildd2")
max_distance = 100.0
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

View file

@ -1,8 +1,10 @@
[gd_scene load_steps=22 format=3 uid="uid://l84on3kv2s52"]
[gd_scene load_steps=24 format=3 uid="uid://l84on3kv2s52"]
[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_emfh4"]
[ext_resource type="Texture2D" uid="uid://d4ialp36plt7v" path="res://Sprites/Actors/Doors/horizontal_door_1.png" id="2_2h3ih"]
[ext_resource type="Texture2D" uid="uid://desg0e2phtw50" path="res://Sprites/HorizontalDoor.png" id="2_rnx3o"]
[ext_resource type="AudioStream" uid="uid://dmsnvo8kdjyt8" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" id="4_4t32u"]
[ext_resource type="AudioStream" uid="uid://p5n7ijw2qvxy" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" id="5_spifk"]
[sub_resource type="AtlasTexture" id="AtlasTexture_2qgx7"]
atlas = ExtResource("2_2h3ih")
@ -171,4 +173,13 @@ shape = SubResource("RectangleShape2D_f2rl6")
z_index = 1
sprite_frames = SubResource("SpriteFrames_8stvs")
[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."]
position = Vector2(0, 1)
stream = ExtResource("4_4t32u")
max_distance = 200.0
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_spifk")
max_distance = 200.0
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=16 format=3 uid="uid://bc64lr3vlwchq"]
[gd_scene load_steps=18 format=3 uid="uid://bc64lr3vlwchq"]
[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_e61bg"]
[ext_resource type="Texture2D" uid="uid://dwcjixrhq4cdv" path="res://Sprites/DoorVertical.png" id="1_vdvtb"]
[ext_resource type="AudioStream" uid="uid://dmsnvo8kdjyt8" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" id="3_gt5vd"]
[ext_resource type="AudioStream" uid="uid://p5n7ijw2qvxy" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" id="4_076sv"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mbysk"]
atlas = ExtResource("1_vdvtb")
@ -123,4 +125,13 @@ gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
shape = SubResource("RectangleShape2D_f2rl6")
[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."]
position = Vector2(0, 1)
stream = ExtResource("3_gt5vd")
max_distance = 200.0
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_076sv")
max_distance = 200.0
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]

View file

@ -27,6 +27,6 @@ color_ramp = SubResource("GradientTexture1D_b2evf")
[node name="Explosion" type="GPUParticles2D"]
emitting = false
amount = 20
process_material = SubResource("ParticleProcessMaterial_4vw6r")
one_shot = true
explosiveness = 1.0
process_material = SubResource("ParticleProcessMaterial_4vw6r")

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=7 format=3 uid="uid://crph24e6e0v0q"]
[gd_scene load_steps=8 format=3 uid="uid://crph24e6e0v0q"]
[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_alima"]
[ext_resource type="Texture2D" uid="uid://d24g1qb40t72l" path="res://Sprites/Button_Small.png" id="2_7m30w"]
[ext_resource type="AudioStream" uid="uid://bjvklk7qmlivd" path="res://SFX/288963__littlerobotsoundfactory__click_electronic_14.wav" id="3_54bnp"]
[sub_resource type="CircleShape2D" id="CircleShape2D_vvpve"]
@ -39,3 +40,6 @@ shape = SubResource("CircleShape2D_vvpve")
sprite_frames = SubResource("SpriteFrames_b2dxw")
autoplay = "default"
frame_progress = 0.061742
[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_54bnp")

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=13 format=3 uid="uid://h11o0et1y54v"]
[gd_scene load_steps=14 format=3 uid="uid://h11o0et1y54v"]
[ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_f0epf"]
[ext_resource type="Texture2D" uid="uid://b2bp03a70cpyd" path="res://Sprites/Explosion1.png" id="2_gmwb3"]
[ext_resource type="AudioStream" uid="uid://ds84e0m5l4i5d" path="res://SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav" id="3_wng0j"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ltwjd"]
atlas = ExtResource("2_gmwb3")
@ -90,6 +91,10 @@ editor_description = "Player Bullet"
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[node name="ExplosionSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_wng0j")
autoplay = true
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=120 format=4 uid="uid://bv451a8wgty4u"]
[gd_scene load_steps=121 format=4 uid="uid://bv451a8wgty4u"]
[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_8tmoj"]
[ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_8mh54"]
@ -80,6 +80,7 @@
[ext_resource type="PackedScene" uid="uid://dfat0erkvb513" path="res://Scenes/Actors/Fairy_New.tscn" id="73_s4x1s"]
[ext_resource type="PackedScene" uid="uid://c21m7w5ahpsd0" path="res://Scenes/Activable/Shroud.tscn" id="74_oaf68"]
[ext_resource type="PackedScene" uid="uid://b3tyacxxw88lx" path="res://Scenes/Utils/StreamPlayerWithName.tscn" id="77_yot54"]
[ext_resource type="AudioStream" uid="uid://blohh20jktoyo" path="res://SFX/270641__phantastonia__alarm2.wav" id="79_jn1m0"]
[ext_resource type="Resource" uid="uid://b0jpn0kkmciuq" path="res://Resources/Music/Overtime_Fairy_Dance.tres" id="82_ksslq"]
[ext_resource type="PackedScene" uid="uid://cvctgw8eo2f7e" path="res://Scenes/Items/SpiderBomb_Pickup.tscn" id="83_jn1m0"]
@ -475,7 +476,7 @@ SpawnMarkers = Dictionary[int, NodePath]({
2: NodePath("Factory Tilemaps/LevelProps/BossDebugTeleporterDestination"),
255: NodePath("Factory Tilemaps/Debug Room/DebugRoomStartPosition")
})
StartingEquipment = Array[ExtResource("6_8tdlb")]([ExtResource("4_swym2"), ExtResource("5_nqier")])
StartingEquipment = [ExtResource("4_swym2"), ExtResource("5_nqier")]
MapStartData = SubResource("Resource_6sau4")
metadata/_edit_lock_ = true
@ -1153,7 +1154,9 @@ script = ExtResource("18_dvo37")
[node name="AlarmManager" type="Node2D" parent="."]
process_mode = 1
position = Vector2(-4, 0)
script = ExtResource("25_rpwvt")
AlarmSound = ExtResource("79_jn1m0")
[node name="HUD" parent="." instance=ExtResource("22_krk0o")]

View file

@ -19,7 +19,6 @@ public partial class ForceField : Door
_animatedSprite.Material = TurnOffMaterial;
//((ShaderMaterial)_animatedSprite.Material).Shader = TurnOffShader;
_ = AnimateShutdownAsync();
}

View file

@ -35,6 +35,9 @@ public partial class Teleporter : Activable
protected GpuParticles2D _particles;
private AudioStreamPlayer2D _teleportStartSound;
private AudioStreamPlayer2D _teleportEndSound;
public override void _Ready()
{
_particles = GetNode<GpuParticles2D>("./Particles");
@ -54,6 +57,9 @@ public partial class Teleporter : Activable
{
_animatedSprite.Play("Default");
}
_teleportStartSound = GetNodeOrNull<AudioStreamPlayer2D>("TeleportStart");
_teleportEndSound = GetNodeOrNull<AudioStreamPlayer2D>("TeleportEnd");
}
public override void _Process(double delta)
@ -133,6 +139,8 @@ public partial class Teleporter : Activable
await TweenPlayer(player);
PlayTeleportStartSound();
//_particles.Emitting = true;
FireParticles();
@ -142,12 +150,22 @@ public partial class Teleporter : Activable
Target.PrepareForReceiving();
player.GlobalPosition = Target.GlobalPosition + TeleportOffset;
Target.PlayTeleportEndSound();
await player.UnTeleport();
player.RequestMovementDisable(false);
}
public void PlayTeleportStartSound()
{
_teleportStartSound?.Play();
}
public void PlayTeleportEndSound()
{
_teleportEndSound?.Play();
}
protected async Task TweenPlayer(PlayerMovement player)
{
await player.TweenGlobalPosition(GlobalPosition + new Vector2(0, -4f), TeleportAnimationLength).PlayAsync(CancellationToken.None);

View file

@ -4,6 +4,9 @@ namespace Cirno.Scripts;
public partial class AlarmManager : Node2D
{
[Export]
public AudioStream AlarmSound { get; private set; }
public static AlarmManager Instance { get; private set; }
public bool IsAlarmOn { get; private set; } = false;
@ -16,9 +19,20 @@ public partial class AlarmManager : Node2D
[Signal]
public delegate void AlarmDisabledEventHandler();
private AudioStreamPlayer2D _player;
public override void _Ready()
{
Instance = this;
if (AlarmSound is not null)
{
var player = new AudioStreamPlayer2D();
player.Stream = AlarmSound;
this.CallDeferred("add_child", player);
_player = player;
}
}
public void SoundAlarm(Vector2 location)
@ -29,11 +43,13 @@ public partial class AlarmManager : Node2D
EmitSignal(nameof(AlarmEnabled), location);
GD.Print($"Alarm sounded at {location}");
_player?.Play();
}
public void DisableAlarm()
{
IsAlarmOn = false;
EmitSignal(nameof(AlarmDisabled));
_player?.Stop();
}
}

View file

@ -8,6 +8,9 @@ public partial class Door : Activable
protected AnimatedSprite2D _animatedSprite;
protected CollisionShape2D _collisionShape;
protected CollisionShape2D _solidShape;
protected AudioStreamPlayer2D _activationSound;
protected AudioStreamPlayer2D _deactivationSound;
// Called when the node enters the scene tree for the first time.
[Export]
@ -25,6 +28,9 @@ public partial class Door : Activable
_collisionShape = GetNode<CollisionShape2D>("CollisionShape2D");
_solidShape = GetNode<CollisionShape2D>("RigidBody2D/CollisionShape2D");
_activationSound = GetNodeOrNull<AudioStreamPlayer2D>("ActivationSound");
_deactivationSound = GetNodeOrNull<AudioStreamPlayer2D>("DeactivationSound");
SetState(State);
}
@ -38,6 +44,7 @@ public partial class Door : Activable
_animatedSprite.Play("Opening");
State = DoorState.Open;
CallDeferred(MethodName.DeferredDisableCollision, true);
_deactivationSound?.Play();
//_collisionShape.Disabled = true;
//_solidShape.Disabled = true;
}
@ -47,6 +54,7 @@ public partial class Door : Activable
_animatedSprite.Play("Closing");
State = DoorState.Closed;
CallDeferred(MethodName.DeferredDisableCollision, false);
_activationSound?.Play();
//_collisionShape.Disabled = false;
//_solidShape.Disabled = false;
}

View file

@ -10,9 +10,19 @@ public partial class Switch : Interactable
[Export] public Array<Node2D> Targets { get; private set; } = new Array<Node2D>();
[Export] public ActivationType ActivationType { get; set; } = ActivationType.Toggle;
private AudioStreamPlayer2D _activationSound;
private readonly string _activationSoundName = "ActivationSound";
public override void _Ready()
{
_activationSound = GetNodeOrNull<AudioStreamPlayer2D>(_activationSoundName);
}
public override bool Activate()
{
if (!MeetsRequirements()) return false;
_activationSound?.Play();
// Compatibility for old single system
bool success = ActivateTarget(Target);