Added menu music
This commit is contained in:
@@ -41,7 +41,7 @@ func _ready() -> void:
|
|||||||
|
|
||||||
Input.mouse_mode = Input.MOUSE_MODE_HIDDEN
|
Input.mouse_mode = Input.MOUSE_MODE_HIDDEN
|
||||||
|
|
||||||
#TODO Add gameplay music
|
SoundManager.play_music_stream(SoundManager.music_stream_gameplay)
|
||||||
|
|
||||||
|
|
||||||
func _process(_delta: float) -> void:
|
func _process(_delta: float) -> void:
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ const MUSIC_BUS = "Music"
|
|||||||
|
|
||||||
|
|
||||||
@export_group("Music Streams", "music_stream")
|
@export_group("Music Streams", "music_stream")
|
||||||
|
@export var music_stream_menu : AudioStream
|
||||||
|
@export var music_stream_gameplay : AudioStream
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
[ext_resource type="AudioStream" uid="uid://mwornwi1s000" path="res://sound/sfx/level_completed.wav" id="12_lqyhh"]
|
[ext_resource type="AudioStream" uid="uid://mwornwi1s000" path="res://sound/sfx/level_completed.wav" id="12_lqyhh"]
|
||||||
[ext_resource type="AudioStream" uid="uid://bnrvkm5wy8wda" path="res://sound/sfx/turret_shot.wav" id="13_814q3"]
|
[ext_resource type="AudioStream" uid="uid://bnrvkm5wy8wda" path="res://sound/sfx/turret_shot.wav" id="13_814q3"]
|
||||||
[ext_resource type="AudioStream" uid="uid://8nag1oaly0by" path="res://sound/sfx/turret_hit.wav" id="13_ounmg"]
|
[ext_resource type="AudioStream" uid="uid://8nag1oaly0by" path="res://sound/sfx/turret_hit.wav" id="13_ounmg"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://c7fvxe05ekdqg" path="res://sound/music/menu_music.wav" id="17_g6nb7"]
|
||||||
|
|
||||||
[node name="SoundManager" type="Node" unique_id=1576371552]
|
[node name="SoundManager" type="Node" unique_id=1576371552]
|
||||||
process_mode = 3
|
process_mode = 3
|
||||||
@@ -41,3 +42,4 @@ sfx_stream_swing = ExtResource("7_ab171")
|
|||||||
sfx_stream_turret_hit = ExtResource("13_ounmg")
|
sfx_stream_turret_hit = ExtResource("13_ounmg")
|
||||||
sfx_stream_turret_shot = ExtResource("13_814q3")
|
sfx_stream_turret_shot = ExtResource("13_814q3")
|
||||||
sfx_stream_wall_jump = ExtResource("8_22ptj")
|
sfx_stream_wall_jump = ExtResource("8_22ptj")
|
||||||
|
music_stream_menu = ExtResource("17_g6nb7")
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ func _ready() -> void:
|
|||||||
|
|
||||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||||
|
|
||||||
#TODO Add menu music
|
SoundManager.play_music_stream(SoundManager.music_stream_menu)
|
||||||
|
|
||||||
start_button.grab_focus()
|
start_button.grab_focus()
|
||||||
get_viewport().gui_focus_changed.connect(_on_gui_focus_changed)
|
get_viewport().gui_focus_changed.connect(_on_gui_focus_changed)
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://c7fvxe05ekdqg"
|
||||||
|
path="res://.godot/imported/menu_music.wav-9c104f1a91389c8732ba52fff29e26f4.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sound/music/menu_music.wav"
|
||||||
|
dest_files=["res://.godot/imported/menu_music.wav-9c104f1a91389c8732ba52fff29e26f4.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
|
||||||
Reference in New Issue
Block a user