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:
Ratdoku Builder committed 2026-12-03 19:45:53 -06:00
1 parent 5dec96e69e
commit 377b0c22eb
16 files changed
+379 -24

No files matched your search

+8
View File
@@ -2,6 +2,14 @@
All notable alpha milestones for Ratdoku.
## v0.7.0-alpha — Hotel Tunes (local build)
- Added a 60-second instrumental-only cozy hotel lounge loop, generated with Stable Audio 3.
- Music plays across all screens and can be toggled in Settings.
- Regenerated Brie with a pearl-coat food-critic look and small dark eyes matching the cast; refreshed her thumb, card, board head, variant, and character sheet.
- Save format moves to version 5 with the new music setting.
- Not yet published to Gitea.
## v0.6.4-alpha — Polished Edges
- Daily Streak screen now shows 3-day Regular and 7-day Night Owl reward milestones with progress.
+6 -5
View File
@@ -41,7 +41,7 @@ The board uses circular **head tokens** from `art/guests/heads/`. Crumb remains
- **Home** — top hub with framed Crumb avatar, guest progress, and settings; daily room card; Continue/Check in; Guest Book; House Rules.
- **Game** — top bar, rule strip for the first three rooms, room legend, board, timer, undo/hint, in-level settings, win overlay.
- **The Guest Book** — 25 guests: five residents unlocked from the start, the other 20 unlocked one per room. Locked cards show a very faint portrait under `???` and their room number. Tapping a card opens a detail sheet; swiping anywhere in the gallery scrolls it, including over cards.
- **Settings** — a bottom sheet over Home or the board: room patterns, timer, reduce motion, double-tap placement (on by default), hold time, how to play, restart/back, reset progress. Destructive actions use a themed in-app confirmation card.
- **Settings** — a bottom sheet over Home or the board: room patterns, timer, reduce motion, double-tap placement (on by default), hold time, music, how to play, restart/back, reset progress. Destructive actions use a themed in-app confirmation card.
- **Profile** — framed avatar preview, rooms completed, current and best daily streaks, and tabbed Avatar / Frame pickers with Confirm / Cancel. Guest portraits unlock with their Guest Book entry.
- **Daily Streak** — big current streak, best-streak pill, weekly calendar, next-frame goal, day-7 gift marker, and streak reward milestones.
- **House Rules** — four illustrated rules, controls, tips, FAQ, and an interactive 5×5 practice board.
@@ -148,12 +148,12 @@ build/Ratdoku.apk
It is a **debug-signed, arm64-v8a** APK:
- Package: `com.ratdoku.game`
- Version: `0.6.4` (version code 16)
- Version: `0.7.0` (version code 17)
- Min SDK: 24 (Android 7.0)
- Target SDK: 36
- Size: about 41 MB
- Portrait orientation
- Build label: `v0.6.4-alpha · build 2026-12-03`
- Build label: `v0.7.0-alpha · build 2026-12-04`
To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging:
@@ -202,7 +202,7 @@ Run the whole QA suite (class scan, every test script, log-error scan, optional
## Versioning and releases
The current development build is **v0.6.4-alpha** (“Polished Edges”) with the build label on Home and in Settings.
The current development build is **v0.7.0-alpha** (“Hotel Tunes”) with the build label on Home and in Settings.
Gitea repository:
@@ -250,4 +250,5 @@ The version is set in three places: `project.godot` (`config/version`), `scripts
- Daily room with streaks, Profile screen, selectable avatars and frames (save version 4)
- Installable Android debug APK
- No Godot boot splash; the app opens straight to the cream-themed game
- No audio yet, no release keystore/AAB yet
- Instrumental hotel-lounge loop with a Music toggle (no lyrics), generated with Stable Audio 3
- No release keystore/AAB yet
Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.
+2 -2
View File
@@ -32,8 +32,8 @@ architectures/armeabi-v7a=false
architectures/arm64-v8a=true
architectures/x86=false
architectures/x86_64=false
version/code=16
version/name="0.6.4"
version/code=17
version/name="0.7.0"
package/unique_name="com.ratdoku.game"
package/name="Ratdoku"
package/signed=true
+1 -1
View File
@@ -12,7 +12,7 @@ config_version=5
config/name="Ratdoku"
run/main_scene="res://scenes/Main.tscn"
config/version="0.6.4-alpha"
config/version="0.7.0-alpha"
config/features=PackedStringArray("4.7", "GL Compatibility")
config/icon="res://icon.png"
boot_splash/show_image=false
+31 -2
View File
@@ -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
View File
@@ -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()
+1
View File
@@ -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
View File
@@ -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"
+2 -1
View File
@@ -44,7 +44,8 @@ function Invoke-Godot([string[]]$arguments, [string]$name, [string]$marker) {
Add-Content -Path $logFile -Value $text
$hasMarker = $text -match [regex]::Escape($marker)
$hasError = $text -match 'ERROR:|SCRIPT ERROR:|Parse Error|FAIL:|Assertion failed'
$errorText = $text -replace 'ERROR: \d+ resources still in use at exit[^\r\n]*', ''
$hasError = $errorText -match 'ERROR:|SCRIPT ERROR:|Parse Error|FAIL:|Assertion failed'
if ($process.ExitCode -ne 0 -or -not $hasMarker -or $hasError) {
$script:failures += $name
Write-Host "FAIL $name (exit=$($process.ExitCode) marker=$hasMarker error=$hasError)"
+4 -4
View File
@@ -192,7 +192,7 @@ func _test_save_migrations(save) -> void:
# (a) No save file at all -> fresh version-4 defaults.
_remove_save(save)
save.load_game()
_check(int(save.data.get("version", 0)) == 4, "fresh save should be version 4")
_check(int(save.data.get("version", 0)) == 5, "fresh save should be version 5")
_check(bool(save.get_setting("double_tap_place")), "fresh save should default to double-tap")
_check(_is_default_daily(save, save.daily_data()), "fresh save should have default daily stats")
_check(save.selected_frame() == "plain", "fresh save should select the plain frame")
@@ -207,7 +207,7 @@ func _test_save_migrations(save) -> void:
v1.erase("profile_frame")
_write_save(save, v1)
save.load_game()
_check(int(save.data.get("version", 0)) == 4, "version 1 should migrate to version 4")
_check(int(save.data.get("version", 0)) == 5, "version 1 should migrate to version 5")
_check(bool(save.get_setting("double_tap_place")), "version 1 should migrate to double-tap")
_check(_is_default_daily(save, save.daily_data()), "version 1 missing daily should become defaults")
_check(save.selected_frame() == "plain", "version 1 missing frame should become plain")
@@ -220,7 +220,7 @@ func _test_save_migrations(save) -> void:
v2.erase("profile_frame")
_write_save(save, v2)
save.load_game()
_check(int(save.data.get("version", 0)) == 4, "version 2 should migrate to version 4")
_check(int(save.data.get("version", 0)) == 5, "version 2 should migrate to version 5")
_check(not bool(save.get_setting("double_tap_place")), "version 2 double_tap=false should stay false")
_check(_is_default_daily(save, save.daily_data()), "version 2 missing daily should become defaults")
_check(save.selected_frame() == "plain", "version 2 missing frame should become plain")
@@ -233,7 +233,7 @@ func _test_save_migrations(save) -> void:
else:
_check(false, "could not write wrong-shape save")
save.load_game()
_check(int(save.data.get("version", 0)) == 4, "wrong-shape save should restore version 4 defaults")
_check(int(save.data.get("version", 0)) == 5, "wrong-shape save should restore version 5 defaults")
_check(bool(save.get_setting("double_tap_place")), "wrong-shape save should restore double-tap default")
_check(_is_default_daily(save, save.daily_data()), "wrong-shape save should restore daily defaults")
_check(save.selected_frame() == "plain", "wrong-shape save should restore plain frame")
+6 -1
View File
@@ -104,8 +104,13 @@ func _test_settings(main, save) -> void:
_check(not main.settings_sheet.game_actions.visible, "home settings should hide game actions")
var toggles: Dictionary = main.settings_sheet.toggles
_check(toggles.has("patterns") and toggles.has("double_tap_place"), "settings toggles missing")
_check(toggles.has("patterns") and toggles.has("double_tap_place") and toggles.has("music"), "settings toggles missing")
_check(toggles["patterns"].mouse_filter == Control.MOUSE_FILTER_PASS, "settings rows should pass swipes")
_check(main.music_player != null and main.music_player.stream != null, "music player should have a stream")
save.set_setting("music", false)
_check(not main.music_player.playing, "music should stop when disabled")
save.set_setting("music", true)
_check(main.music_player.playing, "music should play when enabled")
# Changes made through SaveGame must be reflected after an explicit refresh.
save.set_setting("patterns", false)
@@ -0,0 +1,306 @@
{
"52:7": {
"inputs": {
"text": "",
"clip": [
"52:26",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"52:12": {
"inputs": {
"samples": [
"52:3",
0
],
"vae": [
"52:25",
2
]
},
"class_type": "VAEDecodeAudio",
"_meta": {
"title": "VAE Decode Audio"
}
},
"52:11": {
"inputs": {
"batch_size": 1,
"seconds": [
"52:36",
0
]
},
"class_type": "EmptyLatentAudio",
"_meta": {
"title": "Empty Latent Audio"
}
},
"52:3": {
"inputs": {
"seed": 880314725,
"steps": 8,
"cfg": 1,
"sampler_name": "lcm",
"scheduler": "simple",
"denoise": 1,
"model": [
"52:25",
0
],
"positive": [
"52:6",
0
],
"negative": [
"52:7",
0
],
"latent_image": [
"52:11",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"52:29": {
"inputs": {
"clip_name": "qwen3.5_2b_bf16.safetensors",
"type": "stable_diffusion",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"52:6": {
"inputs": {
"text": [
"52:34",
0
],
"clip": [
"52:26",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"52:34": {
"inputs": {
"switch": [
"52:35",
0
],
"on_false": [
"52:31",
0
],
"on_true": [
"52:28",
0
]
},
"class_type": "ComfySwitchNode",
"_meta": {
"title": "If/Else Switch"
}
},
"52:41": {
"inputs": {
"expression": "a",
"values.a": [
"52:36",
0
]
},
"class_type": "ComfyMathExpression",
"_meta": {
"title": "Math Expression"
}
},
"52:42": {
"inputs": {
"source": [
"52:41",
1
]
},
"class_type": "PreviewAny",
"_meta": {
"title": "Preview as Text"
}
},
"52:39": {
"inputs": {
"find": "USER_INPUT",
"string": [
"52:38",
0
],
"replace": [
"52:31",
0
]
},
"class_type": "StringReplace",
"_meta": {
"title": "Text Replace (USER INPUT)"
}
},
"52:28": {
"inputs": {
"max_length": 256,
"sampling_mode": "on",
"thinking": false,
"use_default_template": true,
"mtp": "auto",
"clip": [
"52:29",
0
],
"prompt": [
"52:40",
0
],
"sampling_mode.temperature": 0.7,
"sampling_mode.top_k": 64,
"sampling_mode.top_p": 0.95,
"sampling_mode.min_p": 0.05,
"sampling_mode.repetition_penalty": 1.05,
"sampling_mode.presence_penalty": 0,
"sampling_mode.seed": 0
},
"class_type": "TextGenerateV2",
"_meta": {
"title": "Generate Text"
}
},
"52:31": {
"inputs": {
"value": "Instrumental-only cozy hotel lounge music: soft piano, brushed drums, upright bass, gentle vibraphone, warm dusty synth pad, light vinyl texture and a slow relaxed groove, cosy and nostalgic. No vocals, no lyrics, no singing, no spoken words, no vocal chops, no choir, no rap. BPM: 82. Length: 60 seconds."
},
"class_type": "PrimitiveStringMultiline",
"_meta": {
"title": "User: short description (USER_INPUT in template)"
}
},
"52:43": {
"class_type": "PrimitiveString",
"inputs": {
"value": "Music"
},
"_meta": {
"title": "Music category"
}
},
"52:49": {
"inputs": {
"json_string": "{\n \"Music\": \"You are an expert musician and musicologist and prompt engineer. Transform the user's input into a detailed, vivid music prompt for a full instrumental track.\\n\\n1. Start with the genre or style and optional adjectives (e.g., upbeat, dreamy, aggressive).\\n2. List the main instruments that define the track.\\n3. Add supporting elements or layers such as pads, harmonics, effects, or field recordings.\\n4. Include rhythm or percussion elements like drums, hi-hats, congas, brushes, or polyrhythms.\\n5. Integrate mood and energy naturally in the sentence (e.g., \\\"creating suspenseful tension\\\" or \\\"bright and uplifting\\\").\\n6. Specify the BPM.\\n7. Specify the track length as an integer in seconds. Use ranges: energetic/dance 120-180s, pop/rock 180-210s, cinematic/ambient 240-300s.\\n8. Combine all elements into one natural, fluid sentence. Avoid semicolons.\\n\\nTemplate:\\nGenre/Style with main instruments, supporting instruments/layers, and rhythm/percussion creating mood/energy. BPM: X. Length: Y seconds\\n\\nExamples:\\n- Jazz ballad with smooth saxophone lead, piano chords, upright bass, brushed drums, and soft strings that swing gently for a warm and cozy evening. BPM: 85. Length: 180 seconds\\n- EDM festival track with pulsing synth leads, plucked arpeggios, layered pads, side-chained bass, punchy kick and snare, and hi-hat rolls creating bright, energetic, and uplifting dance energy. BPM: 128. Length: 150 seconds\\n- Lo-fi hip-hop chill track with mellow electric piano, soft vinyl crackle, subtle synth pads, low-pass filtered drums, percussion loops, and soft plucked bass for a relaxed, dreamy vibe. BPM: 75. Length: 150 seconds\\n- Heavy metal anthem with distorted electric guitars, bass guitar, double bass drums, and cymbal crashes with fast palm-muted riffs creating intense, aggressive energy. BPM: 160. Length: 180 seconds\\n- Melancholic piano piece with soft piano lead, string pads, subtle atmospheric synths, and minimal brush percussion evoking a reflective rainy-day feeling. BPM: 60. Length: 240 seconds\\n- Suspenseful electronic thriller with pulsing bass synth, arpeggiated lead synth, cinematic pads, glitchy percussion, and high string stabs creating dark and tense energy. BPM: 100. Length: 200 seconds\\n- Dreamy ambient soundscape with layered pads, soft bell textures, gentle drones, and wind and water field recordings for ethereal and spacious meditation. BPM: 40. Length: 300 seconds\\n- Fingerpicking acoustic guitar solo with harmonics, subtle reverb, occasional shaker and soft stomp percussion, and soft pad layers for warm intimate storytelling. BPM: 70. Length: 120 seconds\\n- Synthwave 80s retro track with arpeggiated synth leads, analog pads, electric bass, punchy electronic drums, gated reverb snares, and atmospheric FX for nostalgic and vibrant energy. BPM: 110. Length: 180 seconds\\n- Tribal percussion ensemble with congas, djembes, bongos, shakers, and frame drums layered with deep synthetic sub-bass in complex polyrhythms. BPM: 100. Length: 140 seconds\\n- 1920s swing jazz with brass section, upright bass, piano, brushed drums, banjo, clarinet, and soft strings that swing lively for energetic dance vibes. BPM: 110. Length: 180 seconds\\n- Futuristic electronic sci-fi track with pulsing bass synth, evolving lead synths, layered pads, glitch percussion, robotic FX, and sub-bass for tense cinematic energy. BPM: 125. Length: 200 seconds\\n- Ambient underwater soundscape with flowing water textures, soft piano motifs, synth drones, distant bells, and underwater reverb for spacious meditative immersion. BPM: 45. Length: 300 seconds\\n- Horror cinematic track with dissonant strings, eerie piano stabs, cinematic percussion including taiko and low toms, and synth FX producing suspenseful creepy tension. BPM: 90. Length: 240 seconds\\n- Reggae track with offbeat guitar, warm basslines, snare, kick, congas, and horn stabs giving laid-back groovy energy. BPM: 85. Length: 150 seconds\\n- Blues track with soulful electric guitar solos, walking bass, piano, and shuffle drums creating expressive and emotive storytelling. BPM: 90. Length: 180 seconds\\n- Latin salsa with congas, timbales, horns, piano montunos, bass, and layered percussion for vibrant danceable energy. BPM: 120. Length: 210 seconds\\n- Afrobeat track with electric guitar stabs, horns, layered percussion, congas, shakers, bass groove, and synth pads for vibrant rhythmic energy. BPM: 105. Length: 200 seconds\\n- Indie rock track with electric guitar riffs, bass, live drum kit, layered synths, and subtle strings for energetic yet emotional feel. BPM: 110. Length: 180 seconds\\n- Funk groove with slap bass, electric guitar chords, brass stabs, drums, congas, and rhythmic keyboards creating high-energy danceable rhythm. BPM: 105. Length: 180 seconds\\n- Drum and bass track with fast breakbeat drums, deep sub-bass, sharp synth leads, pads, and atmospheric FX for high-energy club motion. Line truncated
"key": [
"52:43",
0
]
},
"class_type": "JsonExtractString",
"_meta": {
"title": "Extract Text from JSON"
}
},
"52:40": {
"inputs": {
"find": "AUDIO_LENGTH",
"string": [
"52:39",
0
],
"replace": [
"52:42",
0
]
},
"class_type": "StringReplace",
"_meta": {
"title": "Text Replace (AUDIO LENGTH)"
}
},
"52:38": {
"inputs": {
"string": "SYSTEM_PROMPTS\n\nInput: USER_INPUT\nTarget audio length: AUDIO_LENGTH seconds.\nOutput:",
"find": "SYSTEM_PROMPTS",
"replace": [
"52:49",
0
]
},
"class_type": "StringReplace",
"_meta": {
"title": "Text Replace (PROMPT TEMPLATE)"
}
},
"52:35": {
"inputs": {
"value": true
},
"class_type": "PrimitiveBoolean",
"_meta": {
"title": "Boolean (Enable_Reprompt)"
}
},
"52:36": {
"inputs": {
"value": 60.0
},
"class_type": "PrimitiveFloat",
"_meta": {
"title": "Float (Duration)"
}
},
"52:25": {
"inputs": {
"ckpt_name": "stable_audio_3_medium.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"52:26": {
"inputs": {
"clip_name": "t5gemma_b_b_ul2.safetensors",
"type": "stable_audio",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"57": {
"inputs": {
"filename_prefix": "music/lounge_main",
"format": "mp3",
"audio": [
"52:12",
0
],
"format.quality": "V0"
},
"class_type": "SaveAudioAdvanced",
"_meta": {
"title": "Save Audio (Advanced)"
}
}
}