volume options

This commit is contained in:
Magnus Küderli
2025-08-11 00:32:33 +02:00
parent 0942e608b9
commit 26358ab8ce
68 changed files with 886 additions and 54 deletions
Binary file not shown.
+19
View File
@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://i5vnq5jouguo"
path="res://.godot/imported/brass-fail.mp3-35bf819223cabd1001b87c45c5d12d1b.mp3str"
[deps]
source_file="res://assets/Audio/brass-fail.mp3"
dest_files=["res://.godot/imported/brass-fail.mp3-35bf819223cabd1001b87c45c5d12d1b.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file not shown.
+24
View File
@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://cvfqvj0yul0de"
path="res://.godot/imported/empty.wav-04831bd111b6db605e7b61b6efefc00a.sample"
[deps]
source_file="res://assets/Audio/empty.wav"
dest_files=["res://.godot/imported/empty.wav-04831bd111b6db605e7b61b6efefc00a.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
Binary file not shown.
+19
View File
@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cj8j2fds8kica"
path="res://.godot/imported/fill-water.mp3-5b5aa1785e19f0bbb9473e0e8e640e3c.mp3str"
[deps]
source_file="res://assets/Audio/fill-water.mp3"
dest_files=["res://.godot/imported/fill-water.mp3-5b5aa1785e19f0bbb9473e0e8e640e3c.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file not shown.
+24
View File
@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://dqcv18iq2btxb"
path="res://.godot/imported/ui_click.wav-d2e952557640140dd5b1153fb6ddfcf6.sample"
[deps]
source_file="res://assets/Audio/ui_click.wav"
dest_files=["res://.godot/imported/ui_click.wav-d2e952557640140dd5b1153fb6ddfcf6.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
Binary file not shown.
@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://d2rri312idynp"
path="res://.godot/imported/aesthetic_title_music.wav-4a7182b87ac24e132c238198ebb7574d.sample"
[deps]
source_file="res://assets/Music/aesthetic_title_music.wav"
dest_files=["res://.godot/imported/aesthetic_title_music.wav-4a7182b87ac24e132c238198ebb7574d.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=0
Binary file not shown.
+24
View File
@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://rw8b60ovl5k1"
path="res://.godot/imported/indigo.wav-2da13e40281cb4d13e8946b8b1a4270a.sample"
[deps]
source_file="res://assets/Music/indigo.wav"
dest_files=["res://.godot/imported/indigo.wav-2da13e40281cb4d13e8946b8b1a4270a.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=0
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bvke0p2bp383"
path="res://.godot/imported/curtain.png-a7e503f7db1f30d136267654daf2a8af.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/curtain.png"
dest_files=["res://.godot/imported/curtain.png-a7e503f7db1f30d136267654daf2a8af.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b38ixa0n3f33s"
path="res://.godot/imported/music_loud_hovered.png-b1a8d67bfce420102fa508d877cd7506.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/music/music_loud_hovered.png"
dest_files=["res://.godot/imported/music_loud_hovered.png-b1a8d67bfce420102fa508d877cd7506.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d3it0oe4qra71"
path="res://.godot/imported/music_loud_hoveredl.png-816164e58deb67b11b624608d1cabcbc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/music/music_loud_hoveredl.png"
dest_files=["res://.godot/imported/music_loud_hoveredl.png-816164e58deb67b11b624608d1cabcbc.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c1n5f2x6do7e0"
path="res://.godot/imported/music_loud_normal.png-2cd51088264b348e18eaf73d75bfbd0e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/music/music_loud_normal.png"
dest_files=["res://.godot/imported/music_loud_normal.png-2cd51088264b348e18eaf73d75bfbd0e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://pk0y1sgpus2"
path="res://.godot/imported/music_mute_hovered.png-ac835de540b2ec295e8bd5943df2d876.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/music/music_mute_hovered.png"
dest_files=["res://.godot/imported/music_mute_hovered.png-ac835de540b2ec295e8bd5943df2d876.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bexjr3v2xnwcn"
path="res://.godot/imported/music_mute_normal.png-388c97496f53a4958a8c8785b718d66c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/music/music_mute_normal.png"
dest_files=["res://.godot/imported/music_mute_normal.png-388c97496f53a4958a8c8785b718d66c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://db4n30oomr41j"
path="res://.godot/imported/sounds_loud_hover.png-de39c10b361ab6e8cabab2d913f3889e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/sounds/sounds_loud_hover.png"
dest_files=["res://.godot/imported/sounds_loud_hover.png-de39c10b361ab6e8cabab2d913f3889e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b885mghrlcv0l"
path="res://.godot/imported/sounds_loud_normal.png-8a6ea1de48a741c1eafe4db92f726b85.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/sounds/sounds_loud_normal.png"
dest_files=["res://.godot/imported/sounds_loud_normal.png-8a6ea1de48a741c1eafe4db92f726b85.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c3nejf5dt2kvi"
path="res://.godot/imported/sounds_mute_hover.png-886e890690b6293510ee1e98a2e091f0.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/sounds/sounds_mute_hover.png"
dest_files=["res://.godot/imported/sounds_mute_hover.png-886e890690b6293510ee1e98a2e091f0.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dml6sdrw30d1f"
path="res://.godot/imported/sounds_mute_normal.png-ab0bc3774aac9712fed325d5fbdd81a0.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/UI/main_menu/sounds/sounds_mute_normal.png"
dest_files=["res://.godot/imported/sounds_mute_normal.png-ab0bc3774aac9712fed325d5fbdd81a0.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

@@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bamhqjcuuo5q7"
uid="uid://t1v5eo55lybf"
path="res://.godot/imported/titlecard.png-9c7a06f0a5b7588a1e06443e33f8bde5.ctex"
metadata={
"vram_texture": false
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

+1 -1
View File
@@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://t1v5eo55lybf"
uid="uid://ooooq7wmujpk"
path="res://.godot/imported/titlecard.png-3fda41205a372250f80f20637eb74716.ctex"
metadata={
"vram_texture": false
+15
View File
@@ -0,0 +1,15 @@
[gd_resource type="AudioBusLayout" format=3 uid="uid://cs3u1j0vu3gux"]
[resource]
bus/1/name = &"Music"
bus/1/solo = false
bus/1/mute = false
bus/1/bypass_fx = false
bus/1/volume_db = 0.0
bus/1/send = &"Master"
bus/2/name = &"Sounds"
bus/2/solo = false
bus/2/mute = false
bus/2/bypass_fx = false
bus/2/volume_db = 0.0
bus/2/send = &"Master"
+3 -2
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=11 format=3 uid="uid://dhimcklqmgrwa"]
[ext_resource type="Script" uid="uid://chnd784qfnidr" path="res://scripts/death_ui.gd" id="1_ug5ey"]
[ext_resource type="AudioStream" uid="uid://c8kq6iekt5stf" path="res://assets/Audio/reverb.mp3" id="2_e1v4f"]
[ext_resource type="AudioStream" uid="uid://i5vnq5jouguo" path="res://assets/Audio/brass-fail.mp3" id="2_ug5ey"]
[ext_resource type="Texture2D" uid="uid://bvn1yexlsryma" path="res://assets/textures/UI/main_menu/shadow.png" id="3_e1ej3"]
[ext_resource type="Texture2D" uid="uid://njmspwi5y623" path="res://assets/textures/UI/main_menu/start_normal.png" id="4_oxb5y"]
[ext_resource type="Texture2D" uid="uid://dt6l0uhlwrtli" path="res://assets/textures/UI/main_menu/start_clicked.png" id="5_dgmd3"]
@@ -104,8 +104,9 @@ libraries = {
}
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("2_e1v4f")
stream = ExtResource("2_ug5ey")
volume_db = 9.973
bus = &"Sounds"
[node name="Main menu button" type="Node2D" parent="."]
+8 -1
View File
@@ -1,9 +1,10 @@
[gd_scene load_steps=10 format=3 uid="uid://ce520h6fkjjj4"]
[gd_scene load_steps=11 format=3 uid="uid://ce520h6fkjjj4"]
[ext_resource type="Script" uid="uid://dbtyjg3okavxm" path="res://scripts/flower.gd" id="1_7qjqy"]
[ext_resource type="Texture2D" uid="uid://cexv04i4cycuy" path="res://assets/textures/plants/flower_01.png" id="2_7qjqy"]
[ext_resource type="AudioStream" uid="uid://casag2oevysk6" path="res://assets/Audio/water_splash.wav" id="3_776rt"]
[ext_resource type="AudioStream" uid="uid://djgfglyy2iqm0" path="res://assets/Audio/dig.wav" id="4_i8xti"]
[ext_resource type="AudioStream" uid="uid://cvfqvj0yul0de" path="res://assets/Audio/empty.wav" id="5_nnf1x"]
[sub_resource type="Animation" id="Animation_hljut"]
length = 0.001
@@ -156,9 +157,11 @@ libraries = {
[node name="Water" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_776rt")
bus = &"Sounds"
[node name="Dig" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_i8xti")
bus = &"Sounds"
[node name="water_splash" type="CPUParticles2D" parent="."]
y_sort_enabled = true
@@ -179,3 +182,7 @@ damping_max = 43.478
scale_amount_min = 0.3
scale_amount_max = 0.6
color_initial_ramp = SubResource("Gradient_i8xti")
[node name="empty" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_nnf1x")
bus = &"Sounds"
+1
View File
@@ -156,6 +156,7 @@ libraries = {
[node name="cutting_audio" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_hljut")
bus = &"Sounds"
[node name="particles" type="CPUParticles2D" parent="."]
y_sort_enabled = true
+6 -1
View File
@@ -1,9 +1,10 @@
[gd_scene load_steps=6 format=3 uid="uid://bu02fn8affrhj"]
[gd_scene load_steps=7 format=3 uid="uid://bu02fn8affrhj"]
[ext_resource type="Texture2D" uid="uid://1bafsxr7sk8j" path="res://assets/textures/UI/hud/hose.png" id="1_q3tki"]
[ext_resource type="Texture2D" uid="uid://bt5rw0uunuw0n" path="res://assets/textures/UI/hud/hose_pressed.png" id="2_tn0l7"]
[ext_resource type="Texture2D" uid="uid://bpn3wgvl5btdf" path="res://assets/textures/UI/hud/hose_hovered.png" id="3_cidix"]
[ext_resource type="Script" uid="uid://bersndixa4xjl" path="res://scripts/hose.gd" id="4_oh8pp"]
[ext_resource type="AudioStream" uid="uid://cj8j2fds8kica" path="res://assets/Audio/fill-water.mp3" id="5_tn0l7"]
[sub_resource type="Gradient" id="Gradient_q3tki"]
offsets = PackedFloat32Array(0.250681, 0.6703, 0.885559)
@@ -36,5 +37,9 @@ initial_velocity_min = 1.0
initial_velocity_max = 10.0
color_initial_ramp = SubResource("Gradient_q3tki")
[node name="filling_sound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_tn0l7")
bus = &"Sounds"
[connection signal="button_down" from="." to="." method="_on_button_down"]
[connection signal="button_up" from="." to="." method="_on_button_up"]
+2
View File
@@ -231,6 +231,8 @@ libraries = {
[node name="Smack" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_opw8q")
bus = &"Sounds"
[node name="Dig" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_opw8q")
bus = &"Sounds"
+2
View File
@@ -166,6 +166,7 @@ libraries = {
[node name="Smack" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_ixa0i")
bus = &"Sounds"
[node name="particles" type="CPUParticles2D" parent="."]
y_sort_enabled = true
@@ -189,3 +190,4 @@ color_initial_ramp = SubResource("Gradient_ixa0i")
[node name="Eating" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_1qlo6")
bus = &"Sounds"
+2
View File
@@ -54,6 +54,8 @@ frame = 4
[node name="equip_sound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_gp58w")
bus = &"Sounds"
[node name="dig_sound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_ylpvu")
bus = &"Sounds"
+1
View File
@@ -21,6 +21,7 @@ ToolManager="*res://scripts/tool_manager.gd"
GameOverManager="*res://scripts/game_over_manager.gd"
DifficultyManager="*res://scripts/difficulty_manager.gd"
ScreenshakeManager="*res://scripts/ScreenshakeManager.gd"
Preferences="*res://scripts/preferences.gd"
[display]
+5
View File
@@ -1,6 +1,11 @@
Sounds:
- freesound_community
- Universfield
- floraphonic
from pixabay
- https://opengameart.org/content/button-click-sound-effect-cc0public-domain
Music:
- https://opengameart.org/content/indigo
- https://opengameart.org/content/aesthetic-title-track
Font:
- GGBotNet (Raster Forge Font)
+203 -18
View File
@@ -1,6 +1,6 @@
[gd_scene load_steps=9 format=3 uid="uid://c52oxfx4pnt2b"]
[gd_scene load_steps=27 format=3 uid="uid://c52oxfx4pnt2b"]
[ext_resource type="Texture2D" uid="uid://t1v5eo55lybf" path="res://assets/titlecard.png" id="1_8ln24"]
[ext_resource type="Texture2D" uid="uid://t1v5eo55lybf" path="res://assets/textures/UI/main_menu/titlecard.png" id="1_8ln24"]
[ext_resource type="FontFile" uid="uid://bu7wlao3hu8io" path="res://assets/Font/RasterForgeRegular-JpBgm.ttf" id="1_l6cm7"]
[ext_resource type="Script" uid="uid://i76h3ayfcpu5" path="res://scripts/game_manager.gd" id="1_tbmy8"]
[ext_resource type="Texture2D" uid="uid://njmspwi5y623" path="res://assets/textures/UI/main_menu/start_normal.png" id="3_8ln24"]
@@ -8,6 +8,92 @@
[ext_resource type="Script" uid="uid://h0t88vsrykqm" path="res://scripts/highscore.gd" id="4_tbmy8"]
[ext_resource type="Texture2D" uid="uid://ct1emaxrws4sm" path="res://assets/textures/UI/main_menu/start-hover.png" id="5_oa1go"]
[ext_resource type="Texture2D" uid="uid://bvn1yexlsryma" path="res://assets/textures/UI/main_menu/shadow.png" id="6_rtw2f"]
[ext_resource type="AudioStream" uid="uid://dqcv18iq2btxb" path="res://assets/Audio/ui_click.wav" id="9_flqon"]
[ext_resource type="AudioStream" uid="uid://d2rri312idynp" path="res://assets/Music/aesthetic_title_music.wav" id="9_jk1qb"]
[ext_resource type="Script" uid="uid://bpwuoj6ulnaoq" path="res://scripts/main_manu_music.gd" id="10_5dd4i"]
[ext_resource type="Script" uid="uid://cpkybkivey185" path="res://scripts/ui_clicks.gd" id="10_rcqid"]
[ext_resource type="Texture2D" uid="uid://bvke0p2bp383" path="res://assets/textures/UI/main_menu/curtain.png" id="11_1ajci"]
[ext_resource type="Texture2D" uid="uid://b885mghrlcv0l" path="res://assets/textures/UI/main_menu/sounds/sounds_loud_normal.png" id="11_5pajh"]
[ext_resource type="Script" uid="uid://b2hxee88mu23x" path="res://scripts/mute_sound.gd" id="11_j7ex8"]
[ext_resource type="Texture2D" uid="uid://db4n30oomr41j" path="res://assets/textures/UI/main_menu/sounds/sounds_loud_hover.png" id="12_j7ex8"]
[ext_resource type="Script" uid="uid://dxgmv4mh8fncp" path="res://scripts/main_menu_curtain.gd" id="13_rcqid"]
[ext_resource type="Texture2D" uid="uid://c1n5f2x6do7e0" path="res://assets/textures/UI/main_menu/music/music_loud_normal.png" id="15_8egab"]
[ext_resource type="Script" uid="uid://dk1tdauuuinvm" path="res://scripts/mute_music.gd" id="16_a8gd2"]
[ext_resource type="Texture2D" uid="uid://b38ixa0n3f33s" path="res://assets/textures/UI/main_menu/music/music_loud_hovered.png" id="16_gw5y6"]
[sub_resource type="Animation" id="Animation_5pajh"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_7b55j"]
resource_name = "fade_out"
length = 4.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.0666667, 3.9),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_j7ex8"]
_data = {
&"RESET": SubResource("Animation_5pajh"),
&"fade_out": SubResource("Animation_7b55j")
}
[sub_resource type="Animation" id="Animation_lgwnu"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Music:volume_db")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-80.0]
}
[sub_resource type="Animation" id="Animation_5dd4i"]
resource_name = "fade_in"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Music:volume_db")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [-50.082, -10.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_flqon"]
_data = {
&"RESET": SubResource("Animation_lgwnu"),
&"fade_in": SubResource("Animation_5dd4i")
}
[node name="Control" type="Control"]
layout_mode = 3
@@ -33,10 +119,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 340.0
offset_top = 59.0
offset_right = 448.0
offset_bottom = 90.0
offset_left = -33.0
offset_top = -47.0
offset_right = 75.0
offset_bottom = -16.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.605, 0.605)
@@ -47,40 +133,139 @@ horizontal_alignment = 1
vertical_alignment = 1
script = ExtResource("4_tbmy8")
[node name="Shadow" type="Sprite2D" parent="CanvasLayer"]
[node name="start_button" type="Node2D" parent="CanvasLayer"]
[node name="Shadow" type="Sprite2D" parent="CanvasLayer/start_button"]
position = Vector2(97, 76)
texture = ExtResource("6_rtw2f")
[node name="TextureButton" type="TextureButton" parent="CanvasLayer"]
[node name="TextureButton" type="TextureButton" parent="CanvasLayer/start_button"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = 9.0
offset_right = 20.0
offset_bottom = 27.0
offset_left = 76.0
offset_top = 65.0
offset_right = 116.0
offset_bottom = 83.0
grow_horizontal = 2
grow_vertical = 2
texture_normal = ExtResource("3_8ln24")
texture_pressed = ExtResource("4_rtw2f")
texture_hover = ExtResource("5_oa1go")
[node name="Label" type="Label" parent="CanvasLayer"]
[node name="ui_click" type="AudioStreamPlayer2D" parent="CanvasLayer/start_button/TextureButton"]
stream = ExtResource("9_flqon")
volume_db = -7.0
bus = &"Sounds"
script = ExtResource("10_rcqid")
[node name="Label" type="Label" parent="CanvasLayer/start_button"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -17.0
offset_top = 14.0
offset_right = 39.0
offset_bottom = 28.0
offset_left = 79.0
offset_top = 70.0
offset_right = 135.0
offset_bottom = 84.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.605, 0.605)
theme_override_fonts/font = ExtResource("1_l6cm7")
text = "START"
[connection signal="button_down" from="CanvasLayer/TextureButton" to="GameManager" method="_on_texture_button_button_down"]
[node name="mute_sound" type="Node2D" parent="CanvasLayer" node_paths=PackedStringArray("sound")]
script = ExtResource("11_j7ex8")
sound = NodePath("TextureButton/ui_click")
[node name="Shadow" type="Sprite2D" parent="CanvasLayer/mute_sound"]
position = Vector2(171, 99)
scale = Vector2(0.4, 0.888889)
texture = ExtResource("6_rtw2f")
[node name="TextureButton" type="TextureButton" parent="CanvasLayer/mute_sound"]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 162.0
offset_top = 90.0
offset_right = 178.0
offset_bottom = 106.0
grow_horizontal = 0
grow_vertical = 0
texture_normal = ExtResource("11_5pajh")
texture_pressed = ExtResource("11_5pajh")
texture_hover = ExtResource("12_j7ex8")
[node name="ui_click" type="AudioStreamPlayer2D" parent="CanvasLayer/mute_sound/TextureButton"]
stream = ExtResource("9_flqon")
volume_db = -7.0
bus = &"Sounds"
[node name="mute_music" type="Node2D" parent="CanvasLayer" node_paths=PackedStringArray("sound")]
position = Vector2(-19, 0)
script = ExtResource("16_a8gd2")
sound = NodePath("TextureButton/ui_click")
[node name="Shadow" type="Sprite2D" parent="CanvasLayer/mute_music"]
position = Vector2(171, 99)
scale = Vector2(0.4, 0.888889)
texture = ExtResource("6_rtw2f")
[node name="TextureButton" type="TextureButton" parent="CanvasLayer/mute_music"]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 162.0
offset_top = 90.0
offset_right = 178.0
offset_bottom = 106.0
grow_horizontal = 0
grow_vertical = 0
texture_normal = ExtResource("15_8egab")
texture_pressed = ExtResource("15_8egab")
texture_hover = ExtResource("16_gw5y6")
[node name="ui_click" type="AudioStreamPlayer2D" parent="CanvasLayer/mute_music/TextureButton"]
stream = ExtResource("9_flqon")
volume_db = -7.0
bus = &"Sounds"
[node name="Curtain" type="Sprite2D" parent="CanvasLayer"]
position = Vector2(97, 59)
scale = Vector2(20.7212, -124.791)
texture = ExtResource("11_1ajci")
script = ExtResource("13_rcqid")
[node name="anim" type="AnimationPlayer" parent="CanvasLayer/Curtain"]
libraries = {
&"": SubResource("AnimationLibrary_j7ex8")
}
[node name="Music" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("9_jk1qb")
volume_db = -80.0
autoplay = true
bus = &"Music"
script = ExtResource("10_5dd4i")
[node name="fades" type="AnimationPlayer" parent="Music"]
root_node = NodePath("../..")
libraries = {
&"": SubResource("AnimationLibrary_flqon")
}
[connection signal="button_down" from="CanvasLayer/start_button/TextureButton" to="GameManager" method="_on_texture_button_button_down"]
[connection signal="mouse_entered" from="CanvasLayer/start_button/TextureButton" to="CanvasLayer/start_button/TextureButton/ui_click" method="_on_texture_button_mouse_entered"]
[connection signal="pressed" from="CanvasLayer/start_button/TextureButton" to="CanvasLayer/start_button/TextureButton/ui_click" method="_on_texture_button_pressed"]
[connection signal="mouse_entered" from="CanvasLayer/mute_sound/TextureButton" to="CanvasLayer/mute_sound" method="_on_texture_button_mouse_entered"]
[connection signal="pressed" from="CanvasLayer/mute_sound/TextureButton" to="CanvasLayer/mute_sound" method="_on_texture_button_pressed"]
[connection signal="mouse_entered" from="CanvasLayer/mute_music/TextureButton" to="CanvasLayer/mute_music" method="_on_texture_button_mouse_entered"]
[connection signal="pressed" from="CanvasLayer/mute_music/TextureButton" to="CanvasLayer/mute_music" method="_on_texture_button_pressed"]
+56 -22
View File
@@ -1,7 +1,9 @@
[gd_scene load_steps=18 format=3 uid="uid://cvjlqsh6hpnko"]
[gd_scene load_steps=20 format=3 uid="uid://cvjlqsh6hpnko"]
[ext_resource type="Texture2D" uid="uid://d33mr38i60hbh" path="res://assets/textures/stage/solid_back.png" id="1_70apb"]
[ext_resource type="AudioStream" uid="uid://rw8b60ovl5k1" path="res://assets/Music/indigo.wav" id="1_e343b"]
[ext_resource type="Texture2D" uid="uid://dwti0ccqyfsw2" path="res://assets/textures/stage/backdrop.png" id="1_wjcry"]
[ext_resource type="AudioStream" uid="uid://c8kq6iekt5stf" path="res://assets/Audio/reverb.mp3" id="2_5ed1f"]
[ext_resource type="PackedScene" uid="uid://b5b2kicamsynj" path="res://prefabs/grass.tscn" id="2_d3k0w"]
[ext_resource type="Script" uid="uid://cvmoyagebxiic" path="res://scripts/unlock_with_time.gd" id="2_ggngx"]
[ext_resource type="Script" uid="uid://dxsqoeq1guqj2" path="res://scripts/cam.gd" id="2_p6jva"]
@@ -71,6 +73,16 @@ _data = {
[node name="Level" type="Node"]
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("1_e343b")
autoplay = true
bus = &"Music"
[node name="Reverb" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("2_5ed1f")
autoplay = true
bus = &"Sounds"
[node name="SolidBack" type="Sprite2D" parent="."]
position = Vector2(103, 57)
scale = Vector2(15.75, 9.5)
@@ -88,6 +100,7 @@ libraries = {
[node name="mowSound" type="AudioStreamPlayer2D" parent="Cam"]
stream = ExtResource("3_5ed1f")
bus = &"Sounds"
playback_type = 1
[node name="Backdrop" type="Sprite2D" parent="."]
@@ -104,70 +117,91 @@ y_sort_enabled = true
script = ExtResource("2_ggngx")
[node name="flower" parent="Ysort/Flowers" instance=ExtResource("3_ggngx")]
position = Vector2(36, 75)
position = Vector2(36, 72)
[node name="flower4" parent="Ysort/Flowers" instance=ExtResource("3_ggngx")]
position = Vector2(31, 43)
position = Vector2(31, 40)
[node name="flower6" parent="Ysort/Flowers" instance=ExtResource("3_ggngx")]
position = Vector2(125, 39)
position = Vector2(125, 36)
[node name="flower7" parent="Ysort/Flowers" instance=ExtResource("3_ggngx")]
position = Vector2(136, 91)
position = Vector2(136, 88)
[node name="flower8" parent="Ysort/Flowers" instance=ExtResource("3_ggngx")]
position = Vector2(70.38, 34)
position = Vector2(70.38, 31)
[node name="flower9" parent="Ysort/Flowers" instance=ExtResource("3_ggngx")]
position = Vector2(84, 81)
position = Vector2(84, 78)
[node name="flower10" parent="Ysort/Flowers" instance=ExtResource("3_ggngx")]
position = Vector2(169, 79)
position = Vector2(169, 76)
[node name="flower11" parent="Ysort/Flowers" instance=ExtResource("3_ggngx")]
position = Vector2(164, 32)
position = Vector2(164, 29)
[node name="Grass" type="Node2D" parent="Ysort"]
y_sort_enabled = true
[node name="Grass" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(100, 31)
position = Vector2(101, 35)
[node name="Grass2" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(13, 52)
position = Vector2(14, 56)
[node name="Grass3" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(109, 78)
position = Vector2(110, 82)
[node name="Grass4" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(157, 49)
position = Vector2(158, 53)
[node name="Grass5" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(43, 90)
position = Vector2(44, 94)
[node name="Grass6" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(22, 81)
position = Vector2(23, 85)
[node name="Grass7" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(58, 59)
position = Vector2(59, 63)
[node name="Grass8" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(52, 20)
position = Vector2(53, 24)
[node name="Grass9" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(142, 23)
position = Vector2(143, 27)
[node name="Grass10" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(126, 60)
position = Vector2(127, 64)
[node name="Grass11" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(104, 60)
position = Vector2(105, 64)
[node name="Grass12" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(158, 88)
position = Vector2(159, 92)
[node name="Grass13" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(115, 23)
position = Vector2(116, 27)
[node name="Grass14" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(85, 58)
[node name="Grass15" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(67, 85)
[node name="Grass16" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(52, 47)
[node name="Grass17" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(179, 62)
[node name="Grass18" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(111, 50)
[node name="Grass19" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(40, 62)
[node name="Grass20" parent="Ysort/Grass" instance=ExtResource("2_d3k0w")]
position = Vector2(74, 64)
[node name="Moles" type="Node2D" parent="Ysort"]
y_sort_enabled = true
+7 -4
View File
@@ -70,10 +70,13 @@ func reset_water():
func _input(event: InputEvent) -> void:
if event is InputEventMouseButton and event.pressed and event.button_index == MOUSE_BUTTON_LEFT:
if $Sprite2D.get_rect().has_point($Sprite2D.to_local(event.position)):
if ToolManager.tool == 0 and alive and ToolManager.water_level > 0:
reset_water();
ToolManager.clear_tool();
$Water.play()
if ToolManager.tool == 0 and alive:
if ToolManager.water_level > 0:
reset_water();
ToolManager.clear_tool();
$Water.play()
else:
$empty.play()
elif ToolManager.tool == 1 and not alive and not cleared: # shovel
$Sprite2D.frame = 4;
+1 -1
View File
@@ -21,7 +21,7 @@ func get_failure_count() -> int:
func _physics_process(_delta: float) -> void:
print(self.failure_states)
# print(self.failure_states)
var failures = get_failure_count()
if failures >= MAX_FAILURES and not game_over:
end()
+1 -1
View File
@@ -5,4 +5,4 @@ func _ready() -> void:
self.visible = false
else:
self.visible = true
self.text = "HIGHSCORE:\n" + "%02d" % int(GameOverManager.seconds_highscore / 60) + ":" + "%02d" % (GameOverManager.seconds_highscore % 60)
self.text = "HIGHSCORE:\n" + "%02d" % int(GameOverManager.seconds_highscore / 60) + ":" + "%02d" % int(GameOverManager.seconds_highscore % 60)
+6
View File
@@ -5,9 +5,13 @@ const REFILL_SPEED = 0.1
func _on_button_down() -> void:
filling = true
if ToolManager.tool == 0:
$filling_sound.play()
func _on_button_up() -> void:
filling = false
if ToolManager.tool == 0:
$filling_sound.stop()
func _physics_process(_delta):
if not ToolManager.tool == 0:
@@ -17,5 +21,7 @@ func _physics_process(_delta):
if filling and ToolManager.water_level < ToolManager.MAX_WATER:
ToolManager.water_level += REFILL_SPEED
$Water_splash.emitting = true
else:
$Water_splash.emitting = false
$filling_sound.stop()
+4
View File
@@ -0,0 +1,4 @@
extends AudioStreamPlayer2D
func _ready() -> void:
$fades.play("fade_in")
+1
View File
@@ -0,0 +1 @@
uid://bpwuoj6ulnaoq
+4
View File
@@ -0,0 +1,4 @@
extends Sprite2D
func _ready() -> void:
$anim.play("fade_out")
+1
View File
@@ -0,0 +1 @@
uid://dxgmv4mh8fncp
+24
View File
@@ -0,0 +1,24 @@
extends Node2D
var muted_normal = preload("res://assets/textures/UI/main_menu/music/music_mute_normal.png")
var muted_hover = preload("res://assets/textures/UI/main_menu/music/music_mute_hovered.png")
var unmuted_normal = preload("res://assets/textures/UI/main_menu/music/music_loud_normal.png")
var unmuted_hover = preload("res://assets/textures/UI/main_menu/music/music_loud_hovered.png")
var muted = false
@export var sound: AudioStreamPlayer2D;
func _on_texture_button_pressed() -> void:
muted = not muted
Preferences.music_muted = muted
if muted:
$TextureButton.texture_normal = muted_normal
$TextureButton.texture_hover = muted_hover
else:
$TextureButton.texture_normal = unmuted_normal
$TextureButton.texture_hover = unmuted_hover
func _on_texture_button_mouse_entered() -> void:
sound.play()
+1
View File
@@ -0,0 +1 @@
uid://dk1tdauuuinvm
+26
View File
@@ -0,0 +1,26 @@
extends Node2D
var muted_normal = preload("res://assets/textures/UI/main_menu/sounds/sounds_mute_normal.png")
var muted_hover = preload("res://assets/textures/UI/main_menu/sounds/sounds_mute_hover.png")
var unmuted_normal = preload("res://assets/textures/UI/main_menu/sounds/sounds_loud_normal.png")
var unmuted_hover = preload("res://assets/textures/UI/main_menu/sounds/sounds_loud_hover.png")
var muted = false
@export var sound: AudioStreamPlayer2D;
func _on_texture_button_pressed() -> void:
muted = not muted
Preferences.sound_muted = muted
if muted:
$TextureButton.texture_normal = muted_normal
$TextureButton.texture_hover = muted_hover
else:
$TextureButton.texture_normal = unmuted_normal
$TextureButton.texture_hover = unmuted_hover
func _on_texture_button_mouse_entered() -> void:
sound.play()
+1
View File
@@ -0,0 +1 @@
uid://b2hxee88mu23x
+16
View File
@@ -0,0 +1,16 @@
extends Node
var sound_muted = false
var music_muted = false
func _physics_process(delta: float) -> void:
if sound_muted:
AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Sounds"), -80)
else:
AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Sounds"), 0)
if music_muted:
AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Music"), -80)
else:
AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Music"), 0)
+1
View File
@@ -0,0 +1 @@
uid://r8vwi64mcawm
+1
View File
@@ -24,6 +24,7 @@ func _physics_process(_delta: float) -> void:
if target:
if not target.alive:
$Eating.stop()
$AnimationPlayer.play("waiting")
pick_target()
return
+4
View File
@@ -0,0 +1,4 @@
extends AudioStreamPlayer2D
func _on_texture_button_mouse_entered() -> void:
self.play()
+1
View File
@@ -0,0 +1 @@
uid://cpkybkivey185
+6 -2
View File
@@ -4,14 +4,18 @@ extends Node2D
var counter: int;
func _ready() -> void:
for child in get_children():
var children = get_children();
children.shuffle()
for child in children:
set_node(child, false)
counter = 0
func _physics_process(_delta: float) -> void:
counter -= 1;
if counter < 1:
for child in get_children():
var children = get_children();
children.shuffle()
for child in children:
if child.visible:
continue
else: