Add two more audio files

Added "ambient noise", and "battle music".

TODO: Battle with Dungeon Guardian.
This commit is contained in:
Stephen Seo 2024-04-13 20:19:07 +09:00
parent c180b0312c
commit 5a51da1968
5 changed files with 49 additions and 0 deletions

View 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:

BIN
audio/LD55_2.mp3 Normal file

Binary file not shown.

19
audio/LD55_2.mp3.import Normal file
View file

@ -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

BIN
audio/LD55_3.mp3 Normal file

Binary file not shown.

19
audio/LD55_3.mp3.import Normal file
View file

@ -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