Compare commits

..
Author SHA1 Message Date
Ratdoku Builder 5c00b35e90 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.
2026-12-03 19:45:53 -06:00
Ratdoku Builder 5dec96e69e chore(release): v0.6.4-alpha
Bump version name to 0.6.4 and Android version code to 16. Document the final polish items.
2026-12-03 16:29:05 -06:00
Ratdoku Builder c65a33b5f0 polish(streak): add reward milestones and clean Krea2 workflow
Fill the Daily Streak screen with 3-day and 7-day frame progress, and remove the stale template text from the Krea2 CLIPTextEncode node.
2026-12-03 16:29:03 -06:00
19 changed files with 5629 additions and 32 deletions

No files matched your search

+15
View File
@@ -2,6 +2,21 @@
All notable alpha milestones for Ratdoku. 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.
- Cleared the stale template prompt left in the Krea2 workflow's unused CLIPTextEncode node.
- Added QA checks for the streak milestone labels.
- Android debug APK rebuilt at version `0.6.4` (version code 16).
## v0.6.3-alpha — Fair Rotation ## v0.6.3-alpha — Fair Rotation
- Daily rooms now use a shuffled 30-room order, so every room appears once before any repeats. - Daily rooms now use a shuffled 30-room order, so every room appears once before any repeats.
+13 -11
View File
@@ -18,7 +18,7 @@ The project uses a portrait **360×640 dp canvas**, scaled to a 540×960 desktop
- In hold mode, a gold ring fills while you hold; at the hold threshold (default 0.35 s) the guest is placed. - In hold mode, a gold ring fills while you hold; at the hold threshold (default 0.35 s) the guest is placed.
- On Android, the system back button acts like the in-app back arrow: it closes overlays first, then navigates back. On Home it asks before quitting. - On Android, the system back button acts like the in-app back arrow: it closes overlays first, then navigates back. On Home it asks before quitting.
- **Undo** and **Hint** are at the bottom. **Restart room** and **Back to lobby** live in the in-level settings sheet. - **Undo** and **Hint** are at the bottom. **Restart room** and **Back to lobby** live in the in-level settings sheet.
- The **Daily room** changes each day and tracks a streak. All 30 rooms rotate once before repeating. Replaying the same day never counts twice. - The **Daily room** changes each day and tracks a streak. All 30 rooms rotate once before repeating. Replaying the same day never counts twice. Open **Streak** for the weekly calendar, next-frame goal, and reward milestones.
- Tap **Crumb** in the top-left to open your Profile, where you can choose an avatar and a frame. Choices apply on Confirm. - Tap **Crumb** in the top-left to open your Profile, where you can choose an avatar and a frame. Choices apply on Confirm.
- A **gold ring** around a guest means they are already checked in and cannot be moved. - A **gold ring** around a guest means they are already checked in and cannot be moved.
- Win when every room, floor, and corridor has exactly one rat and no two rats touch — even diagonally. - Win when every room, floor, and corridor has exactly one rat and no two rats touch — even diagonally.
@@ -41,9 +41,9 @@ 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. - **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. - **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. - **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. - **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, and a visual day-7 gift marker. - **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. - **House Rules** — four illustrated rules, controls, tips, FAQ, and an interactive 5×5 practice board.
## Unlocks ## Unlocks
@@ -148,12 +148,12 @@ build/Ratdoku.apk
It is a **debug-signed, arm64-v8a** APK: It is a **debug-signed, arm64-v8a** APK:
- Package: `com.ratdoku.game` - Package: `com.ratdoku.game`
- Version: `0.6.3` (version code 15) - Version: `0.7.0` (version code 17)
- Min SDK: 24 (Android 7.0) - Min SDK: 24 (Android 7.0)
- Target SDK: 36 - Target SDK: 36
- Size: about 41 MB - Size: about 41 MB
- Portrait orientation - Portrait orientation
- Build label: `v0.6.3-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: 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 ## Versioning and releases
The current development build is **v0.6.3-alpha** (“Fair Rotation”) 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: Gitea repository:
@@ -225,14 +225,15 @@ Alpha releases (all marked prerelease, each with a debug APK and source archive)
- **v0.6.1-alpha** — Android back button navigates the app instead of closing it - **v0.6.1-alpha** — Android back button navigates the app instead of closing it
- **v0.6.2-alpha** — transparent cutout portraits, alternate variants, and full character sheets - **v0.6.2-alpha** — transparent cutout portraits, alternate variants, and full character sheets
- **v0.6.3-alpha** — full 30-room daily rotation, visible profile actions, and reset-safe avatar/frame selection - **v0.6.3-alpha** — full 30-room daily rotation, visible profile actions, and reset-safe avatar/frame selection
- **v0.6.4-alpha** — streak reward milestones and cleaned Krea2 workflow prompts
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.6.3-alpha https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.6.4-alpha
The v0.6.3-alpha APK is also at: The v0.6.4-alpha APK is also at:
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.6.3-alpha/Ratdoku-v0.6.3-alpha.apk` `https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.6.4-alpha/Ratdoku-v0.6.4-alpha.apk`
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.6.3-alpha`. `redesign-360` is the branch with the current 360dp work; it is tagged `v0.6.4-alpha`.
The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`). The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`).
@@ -249,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) - Daily room with streaks, Profile screen, selectable avatars and frames (save version 4)
- Installable Android debug APK - Installable Android debug APK
- No Godot boot splash; the app opens straight to the cream-themed game - 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/arm64-v8a=true
architectures/x86=false architectures/x86=false
architectures/x86_64=false architectures/x86_64=false
version/code=15 version/code=17
version/name="0.6.3" version/name="0.7.0"
package/unique_name="com.ratdoku.game" package/unique_name="com.ratdoku.game"
package/name="Ratdoku" package/name="Ratdoku"
package/signed=true package/signed=true
+1 -1
View File
@@ -12,7 +12,7 @@ config_version=5
config/name="Ratdoku" config/name="Ratdoku"
run/main_scene="res://scenes/Main.tscn" run/main_scene="res://scenes/Main.tscn"
config/version="0.6.3-alpha" config/version="0.7.0-alpha"
config/features=PackedStringArray("4.7", "GL Compatibility") config/features=PackedStringArray("4.7", "GL Compatibility")
config/icon="res://icon.png" config/icon="res://icon.png"
boot_splash/show_image=false boot_splash/show_image=false
+31 -2
View File
@@ -20,6 +20,7 @@ var quit_button: Button
var screens := {} var screens := {}
var current := "home" var current := "home"
var nav_stack: Array[String] = [] var nav_stack: Array[String] = []
var music_player: AudioStreamPlayer
func _ready() -> void: func _ready() -> void:
@@ -29,6 +30,8 @@ func _ready() -> void:
background.mouse_filter = Control.MOUSE_FILTER_IGNORE background.mouse_filter = Control.MOUSE_FILTER_IGNORE
add_child(background) add_child(background)
_setup_music()
home = HomeScene.instantiate() home = HomeScene.instantiate()
_add_screen(home) _add_screen(home)
home.play_pressed.connect(_on_play) home.play_pressed.connect(_on_play)
@@ -85,6 +88,27 @@ func _ready() -> void:
show_screen("home", false) 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: func _add_screen(screen: Control) -> void:
add_child(screen) add_child(screen)
screen.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) screen.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
@@ -166,8 +190,13 @@ func _on_daily() -> void:
game.start_daily(index, key) game.start_daily(index, key)
func _input(event: InputEvent) -> void: func _exit_tree() -> void:
if event.is_action_pressed("ui_cancel"): 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(): if _handle_back():
accept_event() accept_event()
+8 -4
View File
@@ -14,6 +14,7 @@ const DEFAULTS := {
"reduce_motion": false, "reduce_motion": false,
"hold_seconds": 0.35, "hold_seconds": 0.35,
"double_tap_place": true, "double_tap_place": true,
"music": true,
} }
var data := {} var data := {}
@@ -34,7 +35,7 @@ func _default_daily() -> Dictionary:
func _default_data() -> Dictionary: func _default_data() -> Dictionary:
return { return {
"version": 4, "version": 5,
"completed_rooms": [], "completed_rooms": [],
"unlocked_guests": [], "unlocked_guests": [],
"settings": DEFAULTS.duplicate(true), "settings": DEFAULTS.duplicate(true),
@@ -47,7 +48,7 @@ func _default_data() -> Dictionary:
func load_game() -> void: func load_game() -> void:
data = _default_data() data = _default_data()
var stored_version := 4 var stored_version := 5
if FileAccess.file_exists(PATH): if FileAccess.file_exists(PATH):
var file := FileAccess.open(PATH, FileAccess.READ) var file := FileAccess.open(PATH, FileAccess.READ)
@@ -81,7 +82,8 @@ func load_game() -> void:
var migrated := false var migrated := false
# Version 2 made double-tap the default; version 3 added daily streaks # 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: if stored_version < 2:
data["settings"]["double_tap_place"] = true data["settings"]["double_tap_place"] = true
migrated = true migrated = true
@@ -89,6 +91,8 @@ func load_game() -> void:
migrated = true migrated = true
if stored_version < 4: if stored_version < 4:
migrated = true migrated = true
if stored_version < 5:
migrated = true
if typeof(data.get("completed_rooms")) != TYPE_ARRAY: if typeof(data.get("completed_rooms")) != TYPE_ARRAY:
data["completed_rooms"] = [] data["completed_rooms"] = []
@@ -96,7 +100,7 @@ func load_game() -> void:
data["unlocked_guests"] = [] data["unlocked_guests"] = []
if migrated: if migrated:
data["version"] = 4 data["version"] = 5
save_game() 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, "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, "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, "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) _add_hold_row(list)
list.add_child(UI.spacer(2)) list.add_child(UI.spacer(2))
+27
View File
@@ -6,6 +6,8 @@ var current_label: Label
var best_label: Label var best_label: Label
var goal_label: Label var goal_label: Label
var week_row: HBoxContainer var week_row: HBoxContainer
var regular_milestone: Label
var night_milestone: Label
func _ready() -> void: func _ready() -> void:
@@ -81,16 +83,41 @@ func _ready() -> void:
gift_text.custom_minimum_size = Vector2(110, 0) gift_text.custom_minimum_size = Vector2(110, 0)
gift_row.add_child(gift_text) gift_row.add_child(gift_text)
content.add_child(UI.heading("Streak rewards", 18))
var milestones := HBoxContainer.new()
milestones.add_theme_constant_override("separation", 6)
content.add_child(milestones)
regular_milestone = _milestone_card(milestones, "3-day · Regular")
night_milestone = _milestone_card(milestones, "7-day · Night Owl")
UI.pass_scroll_input(content) UI.pass_scroll_input(content)
SaveGame.progress_changed.connect(refresh) SaveGame.progress_changed.connect(refresh)
refresh() refresh()
func _milestone_card(parent: HBoxContainer, title: String) -> Label:
var panel := UI.panel(Palette.PAPER, 12, 8)
panel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
var box := VBoxContainer.new()
box.add_theme_constant_override("separation", 2)
panel.add_child(box)
box.add_child(UI.label(title, 10, Palette.MUTED))
var value := UI.label("", 13)
box.add_child(value)
parent.add_child(panel)
return value
func refresh() -> void: func refresh() -> void:
var streak := SaveGame.daily_streak() var streak := SaveGame.daily_streak()
current_label.text = str(streak) current_label.text = str(streak)
best_label.text = "Best streak: %d" % SaveGame.best_streak() best_label.text = "Best streak: %d" % SaveGame.best_streak()
goal_label.text = Daily.goal_text(streak) goal_label.text = Daily.goal_text(streak)
var best := SaveGame.best_streak()
regular_milestone.text = "Unlocked" if best >= 3 else "%d to go" % (3 - best)
night_milestone.text = "Unlocked" if best >= 7 else "%d to go" % (7 - best)
regular_milestone.add_theme_color_override("font_color", Palette.GOLD if best >= 3 else Palette.INK)
night_milestone.add_theme_color_override("font_color", Palette.GOLD if best >= 7 else Palette.INK)
_build_week() _build_week()
+4 -4
View File
@@ -1,7 +1,7 @@
class_name Version class_name Version
extends RefCounted extends RefCounted
const NUMBER := "0.6.3-alpha" const NUMBER := "0.7.0-alpha"
const CODENAME := "Fair Rotation" const CODENAME := "Hotel Tunes"
const BUILD_DATE := "2026-12-03" const BUILD_DATE := "2026-12-04"
const BUILD_LABEL := "v0.6.3-alpha · build 2026-12-03" 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 Add-Content -Path $logFile -Value $text
$hasMarker = $text -match [regex]::Escape($marker) $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) { if ($process.ExitCode -ne 0 -or -not $hasMarker -or $hasError) {
$script:failures += $name $script:failures += $name
Write-Host "FAIL $name (exit=$($process.ExitCode) marker=$hasMarker error=$hasError)" 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. # (a) No save file at all -> fresh version-4 defaults.
_remove_save(save) _remove_save(save)
save.load_game() 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(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(_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") _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") v1.erase("profile_frame")
_write_save(save, v1) _write_save(save, v1)
save.load_game() 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(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(_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") _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") v2.erase("profile_frame")
_write_save(save, v2) _write_save(save, v2)
save.load_game() 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(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(_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") _check(save.selected_frame() == "plain", "version 2 missing frame should become plain")
@@ -233,7 +233,7 @@ func _test_save_migrations(save) -> void:
else: else:
_check(false, "could not write wrong-shape save") _check(false, "could not write wrong-shape save")
save.load_game() 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(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(_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") _check(save.selected_frame() == "plain", "wrong-shape save should restore plain frame")
+11 -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") _check(not main.settings_sheet.game_actions.visible, "home settings should hide game actions")
var toggles: Dictionary = main.settings_sheet.toggles 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(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. # Changes made through SaveGame must be reflected after an explicit refresh.
save.set_setting("patterns", false) save.set_setting("patterns", false)
@@ -321,6 +326,11 @@ func _test_profile(main, save) -> void:
await process_frame await process_frame
_check(main.current == "streak", "Profile should open the streak screen") _check(main.current == "streak", "Profile should open the streak screen")
_check(main.streak.week_row.get_child_count() == 7, "streak screen should show a seven-day week") _check(main.streak.week_row.get_child_count() == 7, "streak screen should show a seven-day week")
var best: int = int(save.best_streak())
var regular_text := "Unlocked" if best >= 3 else "%d to go" % (3 - best)
var night_text := "Unlocked" if best >= 7 else "%d to go" % (7 - best)
_check(main.streak.regular_milestone.text == regular_text, "regular milestone should match best streak")
_check(main.streak.night_milestone.text == night_text, "night owl milestone should match best streak")
_check(main.streak.current_label.text == str(save.daily_streak()), "streak number should match the save") _check(main.streak.current_label.text == str(save.daily_streak()), "streak number should match the save")
main.show_screen("profile", false) main.show_screen("profile", false)
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -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)"
}
}
}