]> git.seodisparate.com - LD55/commitdiff
Add two more audio files
authorStephen Seo <seo.disparate@gmail.com>
Sat, 13 Apr 2024 11:19:07 +0000 (20:19 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 13 Apr 2024 11:19:30 +0000 (20:19 +0900)
Added "ambient noise", and "battle music".

TODO: Battle with Dungeon Guardian.

MainLogic.gd
audio/LD55_2.mp3 [new file with mode: 0644]
audio/LD55_2.mp3.import [new file with mode: 0644]
audio/LD55_3.mp3 [new file with mode: 0644]
audio/LD55_3.mp3.import [new file with mode: 0644]

index e37a4c64bc6fce22e42aa4b93250a0e2e6bd8802..ebda33c80e250636539406c6e5f0b2211a76a26d 100644 (file)
@@ -170,6 +170,17 @@ func _process(delta):
                        lower_label.text = "Arrow keys/WASD/Left-Stick to move."
                        tween_text = get_tree().create_tween()
                        tween_text.tween_property(lower_label, "self_modulate", Color(1, 1, 1, 0), 5)
+                       tween_text.tween_callback(func():
+                               lower_label.text = ""
+                               lower_label.self_modulate = Color(1, 1, 1, 1)
+                       )
+                       music_file.close()
+                       music_player.volume_db = 0.0
+                       music_player.stream = AudioStreamMP3.new()
+                       music_file = FileAccess.open("res://audio/LD55_2.mp3", FileAccess.READ)
+                       music_player.stream.data = music_file.get_buffer(music_file.get_length())
+                       music_player.stream.loop = true
+                       music_player.play()
                StateT.Dungeon_Entrance:
                        camera_to_gander(delta)
                        if level_guard == null:
diff --git a/audio/LD55_2.mp3 b/audio/LD55_2.mp3
new file mode 100644 (file)
index 0000000..33c236e
Binary files /dev/null and b/audio/LD55_2.mp3 differ
diff --git a/audio/LD55_2.mp3.import b/audio/LD55_2.mp3.import
new file mode 100644 (file)
index 0000000..b005e93
--- /dev/null
@@ -0,0 +1,19 @@
+[remap]
+
+importer="mp3"
+type="AudioStreamMP3"
+uid="uid://18u0r46uho0f"
+path="res://.godot/imported/LD55_2.mp3-34aece3f1076ff4ee4a342f09742ae03.mp3str"
+
+[deps]
+
+source_file="res://audio/LD55_2.mp3"
+dest_files=["res://.godot/imported/LD55_2.mp3-34aece3f1076ff4ee4a342f09742ae03.mp3str"]
+
+[params]
+
+loop=true
+loop_offset=0
+bpm=0
+beat_count=0
+bar_beats=4
diff --git a/audio/LD55_3.mp3 b/audio/LD55_3.mp3
new file mode 100644 (file)
index 0000000..4cc9e64
Binary files /dev/null and b/audio/LD55_3.mp3 differ
diff --git a/audio/LD55_3.mp3.import b/audio/LD55_3.mp3.import
new file mode 100644 (file)
index 0000000..9cf7ce3
--- /dev/null
@@ -0,0 +1,19 @@
+[remap]
+
+importer="mp3"
+type="AudioStreamMP3"
+uid="uid://dymc7p8pyr5y4"
+path="res://.godot/imported/LD55_3.mp3-20ea91918fd2eaba4ffbeab07a2323ed.mp3str"
+
+[deps]
+
+source_file="res://audio/LD55_3.mp3"
+dest_files=["res://.godot/imported/LD55_3.mp3-20ea91918fd2eaba4ffbeab07a2323ed.mp3str"]
+
+[params]
+
+loop=true
+loop_offset=0
+bpm=0
+beat_count=0
+bar_beats=4