feat(audio): add instrumental lounge loop and refresh Brie
Local-only v0.7.0 build. Adds a 60-second instrumental Stable Audio 3 loop with a Settings toggle and save version 5, regenerates Brie with small dark eyes and matching gouache style, and updates QA. Not pushed or published.
This commit is contained in:
1 parent
5dec96e69e
commit
5c00b35e90
16 files changed
+379
-24
No files matched your search
+31
-2
@@ -20,6 +20,7 @@ var quit_button: Button
|
||||
var screens := {}
|
||||
var current := "home"
|
||||
var nav_stack: Array[String] = []
|
||||
var music_player: AudioStreamPlayer
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -29,6 +30,8 @@ func _ready() -> void:
|
||||
background.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
add_child(background)
|
||||
|
||||
_setup_music()
|
||||
|
||||
home = HomeScene.instantiate()
|
||||
_add_screen(home)
|
||||
home.play_pressed.connect(_on_play)
|
||||
@@ -85,6 +88,27 @@ func _ready() -> void:
|
||||
show_screen("home", false)
|
||||
|
||||
|
||||
func _setup_music() -> void:
|
||||
music_player = AudioStreamPlayer.new()
|
||||
var stream = load("res://assets/audio/lounge_main.mp3")
|
||||
stream.loop = true
|
||||
music_player.stream = stream
|
||||
music_player.volume_db = -14.0
|
||||
add_child(music_player)
|
||||
SaveGame.settings_changed.connect(_update_music)
|
||||
_update_music()
|
||||
|
||||
|
||||
func _update_music() -> void:
|
||||
if music_player == null:
|
||||
return
|
||||
if bool(SaveGame.get_setting("music")):
|
||||
if not music_player.playing:
|
||||
music_player.play()
|
||||
else:
|
||||
music_player.stop()
|
||||
|
||||
|
||||
func _add_screen(screen: Control) -> void:
|
||||
add_child(screen)
|
||||
screen.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||
@@ -166,8 +190,13 @@ func _on_daily() -> void:
|
||||
game.start_daily(index, key)
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("ui_cancel"):
|
||||
func _exit_tree() -> void:
|
||||
if music_player != null:
|
||||
music_player.stop()
|
||||
music_player.stream = null
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void: if event.is_action_pressed("ui_cancel"):
|
||||
if _handle_back():
|
||||
accept_event()
|
||||
|
||||
|
||||
Reference in new issue
Block a user