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()
|
||||
|
||||
|
||||
+8
-4
@@ -14,6 +14,7 @@ const DEFAULTS := {
|
||||
"reduce_motion": false,
|
||||
"hold_seconds": 0.35,
|
||||
"double_tap_place": true,
|
||||
"music": true,
|
||||
}
|
||||
|
||||
var data := {}
|
||||
@@ -34,7 +35,7 @@ func _default_daily() -> Dictionary:
|
||||
|
||||
func _default_data() -> Dictionary:
|
||||
return {
|
||||
"version": 4,
|
||||
"version": 5,
|
||||
"completed_rooms": [],
|
||||
"unlocked_guests": [],
|
||||
"settings": DEFAULTS.duplicate(true),
|
||||
@@ -47,7 +48,7 @@ func _default_data() -> Dictionary:
|
||||
|
||||
func load_game() -> void:
|
||||
data = _default_data()
|
||||
var stored_version := 4
|
||||
var stored_version := 5
|
||||
|
||||
if FileAccess.file_exists(PATH):
|
||||
var file := FileAccess.open(PATH, FileAccess.READ)
|
||||
@@ -81,7 +82,8 @@ func load_game() -> void:
|
||||
|
||||
var migrated := false
|
||||
# Version 2 made double-tap the default; version 3 added daily streaks
|
||||
# and profile frames; version 4 added avatars and streak history.
|
||||
# and profile frames; version 4 added avatars and streak history;
|
||||
# version 5 added the music setting.
|
||||
if stored_version < 2:
|
||||
data["settings"]["double_tap_place"] = true
|
||||
migrated = true
|
||||
@@ -89,6 +91,8 @@ func load_game() -> void:
|
||||
migrated = true
|
||||
if stored_version < 4:
|
||||
migrated = true
|
||||
if stored_version < 5:
|
||||
migrated = true
|
||||
|
||||
if typeof(data.get("completed_rooms")) != TYPE_ARRAY:
|
||||
data["completed_rooms"] = []
|
||||
@@ -96,7 +100,7 @@ func load_game() -> void:
|
||||
data["unlocked_guests"] = []
|
||||
|
||||
if migrated:
|
||||
data["version"] = 4
|
||||
data["version"] = 5
|
||||
save_game()
|
||||
|
||||
|
||||
|
||||
@@ -90,6 +90,7 @@ func _ready() -> void:
|
||||
_add_toggle(list, "Show timer", "Keep the clock visible while you solve.", "show_timer")
|
||||
_add_toggle(list, "Reduce motion", "Stop the bob and placement pop.", "reduce_motion")
|
||||
_add_toggle(list, "Double-tap to place", "Tap = mark · double-tap = check in.", "double_tap_place")
|
||||
_add_toggle(list, "Music", "Play the hotel lounge loop.", "music")
|
||||
_add_hold_row(list)
|
||||
|
||||
list.add_child(UI.spacer(2))
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
class_name Version
|
||||
extends RefCounted
|
||||
|
||||
const NUMBER := "0.6.4-alpha"
|
||||
const CODENAME := "Polished Edges"
|
||||
const BUILD_DATE := "2026-12-03"
|
||||
const BUILD_LABEL := "v0.6.4-alpha · build 2026-12-03"
|
||||
const NUMBER := "0.7.0-alpha"
|
||||
const CODENAME := "Hotel Tunes"
|
||||
const BUILD_DATE := "2026-12-04"
|
||||
const BUILD_LABEL := "v0.7.0-alpha · build 2026-12-04"
|
||||
Reference in new issue
Block a user