Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c00b35e90 | ||
|
|
5dec96e69e | ||
|
|
c65a33b5f0 | ||
|
|
78f1dbaa31 | ||
|
|
b4fd03a8a4 | ||
|
|
0cc08de31b | ||
|
|
2eff00e59d | ||
|
|
898dedde94 | ||
|
|
f9ab1c26a0 |
No files matched your search
@@ -2,6 +2,47 @@
|
|||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
- Daily rooms now use a shuffled 30-room order, so every room appears once before any repeats.
|
||||||
|
- Profile Confirm / Cancel buttons are fixed below the scroll and always visible.
|
||||||
|
- Reset progress now clears a room-locked frame and a locked guest avatar, falling back to plain / Crumb.
|
||||||
|
- Home's caption follows the selected avatar instead of always saying Crumb.
|
||||||
|
- Added QA for the 30-day rotation and reset fallbacks.
|
||||||
|
- Android debug APK rebuilt at version `0.6.3` (version code 15).
|
||||||
|
|
||||||
|
## v0.6.2-alpha — Clean Cutouts
|
||||||
|
|
||||||
|
- Regenerated all 25 guest portraits with the saved Krea2 Uncensored workflow on a neutral white background.
|
||||||
|
- Cut every portrait out with the local birefnet background-removal model and added a uniform cream outline, giving thumbs, cards, and board heads true transparency.
|
||||||
|
- Generated a second variant for each guest and a 1024×3072 character sheet for each guest, kept as source assets.
|
||||||
|
- Copied the saved `Qwen_Image_2.1_Edit_Uncensored` and `Krea2_Turbo_Uncensored` workflows into `tools/workflows/` for reproducibility.
|
||||||
|
- Added art QA for alpha corners, dimensions, and contact-sheet review.
|
||||||
|
- Android debug APK rebuilt at version `0.6.2` (version code 14).
|
||||||
|
|
||||||
|
## v0.6.1-alpha — Back Button
|
||||||
|
|
||||||
|
- Android's hardware back button now follows the same path as the in-app back arrow instead of closing the game.
|
||||||
|
- Back closes overlays in order: quit confirmation, settings confirmation, settings sheet, Guest Book detail, win overlay, then screen navigation.
|
||||||
|
- On Home, back opens a themed "Leave Ratdoku?" confirmation before quitting.
|
||||||
|
- Added headless QA that injects `ui_cancel` at each layer.
|
||||||
|
- Android debug APK rebuilt at version `0.6.1` (version code 13).
|
||||||
|
|
||||||
## v0.6.0-alpha — New Looks & Streaks
|
## v0.6.0-alpha — New Looks & Streaks
|
||||||
|
|
||||||
- Profile now has tabbed **Avatar** and **Frame** pickers with a large preview, selection highlighting, and Confirm / Cancel. Guest portraits unlock with their Guest Book entries; Crumb is available from the start.
|
- Profile now has tabbed **Avatar** and **Frame** pickers with a large preview, selection highlighting, and Confirm / Cancel. Guest portraits unlock with their Guest Book entries; Crumb is available from the start.
|
||||||
|
|||||||
@@ -16,8 +16,9 @@ The project uses a portrait **360×640 dp canvas**, scaled to a 540×960 desktop
|
|||||||
- **Double-tap** a cell to check a guest in or out. **Double-tap is on by default.**
|
- **Double-tap** a cell to check a guest in or out. **Double-tap is on by default.**
|
||||||
- Prefer holding? Turn off **Double-tap to place** in Settings, then **press and hold** (mobile) or **right-click** (PC) to check a guest in. Right-click keeps working in both modes.
|
- Prefer holding? Turn off **Double-tap to place** in Settings, then **press and hold** (mobile) or **right-click** (PC) to check a guest in. Right-click keeps working in both modes.
|
||||||
- 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.
|
||||||
- **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. Replaying the same day never counts twice. Open **Streak** for the weekly calendar and next goal.
|
- 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.
|
||||||
@@ -40,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
|
||||||
@@ -126,7 +127,7 @@ The generator appends until `data/levels.json` contains 30 rooms. It keeps the e
|
|||||||
|
|
||||||
## Guest art
|
## Guest art
|
||||||
|
|
||||||
The 25 guest portraits were generated from the `Krea2_Turbo_Uncensored` ComfyUI workflow with a shared chibi/gouache prompt and per-character props. The final prompt variants are in `tools/workflows/final_guests/`.
|
The 25 guest portraits were regenerated from the `Krea2_Image_Uncensored` ComfyUI workflow with a shared gouache prompt and per-character props. Each render is cut out with the local `birefnet` background-removal model, given a uniform cream outline, then exported with true alpha. Prompt variants are kept in `tools/workflows/final_guests/`; the two reusable Uncensored workflows are in `tools/workflows/`.
|
||||||
|
|
||||||
Runtime assets:
|
Runtime assets:
|
||||||
|
|
||||||
@@ -134,7 +135,7 @@ Runtime assets:
|
|||||||
- `art/guests/cards/<id>.png` — detail portraits
|
- `art/guests/cards/<id>.png` — detail portraits
|
||||||
- `art/guests/thumbs/<id>.png` — gallery thumbnails
|
- `art/guests/thumbs/<id>.png` — gallery thumbnails
|
||||||
|
|
||||||
Source 1024 renders and contact sheets live in `art/guests/source/` and are excluded from the Android export.
|
Source 1024 renders, alternate variants, full 1024×3072 character sheets, and contact sheets live in `art/guests/source/` and are excluded from the Android export. The gallery, card, and head PNGs shipped in the APK have transparent backgrounds instead of baked cream sticker backdrops.
|
||||||
|
|
||||||
## Android APK
|
## Android APK
|
||||||
|
|
||||||
@@ -147,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.0` (version code 12)
|
- 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.0-alpha · build 2026-12-02`
|
- 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:
|
||||||
|
|
||||||
@@ -201,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.0-alpha** (“New Looks & Streaks”) 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:
|
||||||
|
|
||||||
@@ -221,14 +222,18 @@ Alpha releases (all marked prerelease, each with a debug APK and source archive)
|
|||||||
- **v0.5.2-alpha** — themed reset/restart confirmation and no Godot boot splash
|
- **v0.5.2-alpha** — themed reset/restart confirmation and no Godot boot splash
|
||||||
- **v0.5.3-alpha** — high-resolution UI icons that stay sharp on high-density screens
|
- **v0.5.3-alpha** — high-resolution UI icons that stay sharp on high-density screens
|
||||||
- **v0.6.0-alpha** — selectable guest avatars with tabbed picker and a Daily Streak screen with weekly goal
|
- **v0.6.0-alpha** — selectable guest avatars with tabbed picker and a Daily Streak screen with weekly goal
|
||||||
|
- **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.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.0-alpha
|
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.6.4-alpha
|
||||||
|
|
||||||
The v0.6.0-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.0-alpha/Ratdoku-v0.6.0-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.0-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`).
|
||||||
|
|
||||||
@@ -245,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
|
||||||
|
Before Width: | Height: | Size: 478 KiB After Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 429 KiB After Width: | Height: | Size: 193 KiB |
|
Before Width: | Height: | Size: 431 KiB After Width: | Height: | Size: 254 KiB |
|
Before Width: | Height: | Size: 487 KiB After Width: | Height: | Size: 245 KiB |
|
Before Width: | Height: | Size: 485 KiB After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 481 KiB After Width: | Height: | Size: 198 KiB |
|
Before Width: | Height: | Size: 453 KiB After Width: | Height: | Size: 217 KiB |
|
Before Width: | Height: | Size: 472 KiB After Width: | Height: | Size: 243 KiB |
|
Before Width: | Height: | Size: 450 KiB After Width: | Height: | Size: 184 KiB |
|
Before Width: | Height: | Size: 401 KiB After Width: | Height: | Size: 218 KiB |
|
Before Width: | Height: | Size: 441 KiB After Width: | Height: | Size: 215 KiB |
|
Before Width: | Height: | Size: 473 KiB After Width: | Height: | Size: 222 KiB |
|
Before Width: | Height: | Size: 390 KiB After Width: | Height: | Size: 228 KiB |
|
Before Width: | Height: | Size: 493 KiB After Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 503 KiB After Width: | Height: | Size: 225 KiB |
|
Before Width: | Height: | Size: 460 KiB After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 487 KiB After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 447 KiB After Width: | Height: | Size: 191 KiB |
|
Before Width: | Height: | Size: 505 KiB After Width: | Height: | Size: 215 KiB |
|
Before Width: | Height: | Size: 495 KiB After Width: | Height: | Size: 199 KiB |
|
Before Width: | Height: | Size: 469 KiB After Width: | Height: | Size: 217 KiB |
|
Before Width: | Height: | Size: 459 KiB After Width: | Height: | Size: 186 KiB |
|
Before Width: | Height: | Size: 478 KiB After Width: | Height: | Size: 188 KiB |
|
Before Width: | Height: | Size: 505 KiB After Width: | Height: | Size: 208 KiB |
|
Before Width: | Height: | Size: 474 KiB After Width: | Height: | Size: 239 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 131 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 71 KiB |
@@ -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=12
|
version/code=17
|
||||||
version/name="0.6.0"
|
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
|
||||||
|
|||||||
@@ -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.0-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
|
||||||
|
|||||||
@@ -53,9 +53,23 @@ static func goal_text(streak: int) -> String:
|
|||||||
return "%d more day%s until the Regular frame" % [3 - streak, "" if 3 - streak == 1 else "s"]
|
return "%d more day%s until the Regular frame" % [3 - streak, "" if 3 - streak == 1 else "s"]
|
||||||
|
|
||||||
|
|
||||||
## Stable per-date room choice. With 30 rooms the pool repeats monthly.
|
## Stable per-date room choice. A fixed shuffled order guarantees every
|
||||||
|
## room appears once before the daily pool repeats.
|
||||||
static func level_index(level_count: int, key: String = "") -> int:
|
static func level_index(level_count: int, key: String = "") -> int:
|
||||||
if level_count <= 0:
|
if level_count <= 0:
|
||||||
return -1
|
return -1
|
||||||
var date_key := key if key != "" else today_key()
|
var date_key := key if key != "" else today_key()
|
||||||
return absi(("ratdoku-daily-" + date_key).hash()) % level_count
|
var index := absi(day_number(date_key)) % level_count
|
||||||
|
|
||||||
|
# Deterministic across devices and sessions: same seed => same order.
|
||||||
|
var rng := RandomNumberGenerator.new()
|
||||||
|
rng.seed = 0x52415444
|
||||||
|
var order: Array = []
|
||||||
|
for i in range(level_count):
|
||||||
|
order.append(i)
|
||||||
|
for i in range(level_count - 1, 0, -1):
|
||||||
|
var j := rng.randi_range(0, i)
|
||||||
|
var swap = order[i]
|
||||||
|
order[i] = order[j]
|
||||||
|
order[j] = swap
|
||||||
|
return int(order[index])
|
||||||
@@ -349,6 +349,11 @@ func restart_room() -> void:
|
|||||||
start_level(level_index, daily_mode, daily_key)
|
start_level(level_index, daily_mode, daily_key)
|
||||||
|
|
||||||
|
|
||||||
|
func hide_win() -> void:
|
||||||
|
win_shown = false
|
||||||
|
overlay.visible = false
|
||||||
|
|
||||||
|
|
||||||
func _on_board_changed() -> void:
|
func _on_board_changed() -> void:
|
||||||
if win_shown:
|
if win_shown:
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ signal streak_pressed
|
|||||||
var progress_pill: Button
|
var progress_pill: Button
|
||||||
var primary: Button
|
var primary: Button
|
||||||
var hint_label: Label
|
var hint_label: Label
|
||||||
|
var mascot_caption: Label
|
||||||
var daily_button: Button
|
var daily_button: Button
|
||||||
var streak_button: Button
|
var streak_button: Button
|
||||||
var avatar_holder: CenterContainer
|
var avatar_holder: CenterContainer
|
||||||
@@ -91,7 +92,8 @@ func _ready() -> void:
|
|||||||
card.add_child(mascot)
|
card.add_child(mascot)
|
||||||
column.add_child(card)
|
column.add_child(card)
|
||||||
|
|
||||||
column.add_child(UI.label("Crumb, innkeeper", 12, Palette.MUTED))
|
mascot_caption = UI.label("Crumb, innkeeper", 12, Palette.MUTED)
|
||||||
|
column.add_child(mascot_caption)
|
||||||
hint_label = UI.label(UI.place_hint(), 11, Palette.MUTED)
|
hint_label = UI.label(UI.place_hint(), 11, Palette.MUTED)
|
||||||
column.add_child(hint_label)
|
column.add_child(hint_label)
|
||||||
|
|
||||||
@@ -133,6 +135,15 @@ func _ready() -> void:
|
|||||||
|
|
||||||
func refresh() -> void:
|
func refresh() -> void:
|
||||||
hint_label.text = UI.place_hint()
|
hint_label.text = UI.place_hint()
|
||||||
|
var avatar_id := SaveGame.selected_avatar()
|
||||||
|
if avatar_id == "crumb":
|
||||||
|
mascot_caption.text = "Crumb, innkeeper"
|
||||||
|
else:
|
||||||
|
var guest := Guests.by_id(avatar_id)
|
||||||
|
mascot_caption.text = "%s · %s" % [
|
||||||
|
str(guest.get("name", avatar_id)),
|
||||||
|
str(guest.get("role", "Guest"))
|
||||||
|
]
|
||||||
daily_button.text = _daily_text()
|
daily_button.text = _daily_text()
|
||||||
_refresh_avatar()
|
_refresh_avatar()
|
||||||
var guests := Guests.all()
|
var guests := Guests.all()
|
||||||
|
|||||||
@@ -15,9 +15,12 @@ var rulebook
|
|||||||
var profile
|
var profile
|
||||||
var streak
|
var streak
|
||||||
var settings_sheet
|
var settings_sheet
|
||||||
|
var quit_layer: ColorRect
|
||||||
|
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:
|
||||||
@@ -27,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)
|
||||||
@@ -69,6 +74,8 @@ func _ready() -> void:
|
|||||||
settings_sheet.lobby_requested.connect(_on_lobby_requested)
|
settings_sheet.lobby_requested.connect(_on_lobby_requested)
|
||||||
settings_sheet.rules_requested.connect(_on_rules_requested)
|
settings_sheet.rules_requested.connect(_on_rules_requested)
|
||||||
|
|
||||||
|
_build_quit_confirm()
|
||||||
|
|
||||||
screens = {
|
screens = {
|
||||||
"home": home,
|
"home": home,
|
||||||
"game": game,
|
"game": game,
|
||||||
@@ -81,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)
|
||||||
@@ -160,3 +188,126 @@ func _on_daily() -> void:
|
|||||||
var index := Daily.level_index(game.levels.size(), key)
|
var index := Daily.level_index(game.levels.size(), key)
|
||||||
show_screen("game")
|
show_screen("game")
|
||||||
game.start_daily(index, key)
|
game.start_daily(index, key)
|
||||||
|
|
||||||
|
|
||||||
|
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()
|
||||||
|
|
||||||
|
|
||||||
|
func _notification(what: int) -> void:
|
||||||
|
if what == NOTIFICATION_WM_GO_BACK_REQUEST:
|
||||||
|
_handle_back()
|
||||||
|
|
||||||
|
|
||||||
|
func _handle_back() -> bool:
|
||||||
|
if quit_layer != null and quit_layer.visible:
|
||||||
|
_hide_quit_confirm()
|
||||||
|
return true
|
||||||
|
if settings_sheet != null and settings_sheet.visible:
|
||||||
|
if settings_sheet.confirm_layer != null and settings_sheet.confirm_layer.visible:
|
||||||
|
settings_sheet._hide_confirm()
|
||||||
|
else:
|
||||||
|
close_settings()
|
||||||
|
return true
|
||||||
|
if guest_book != null and guest_book.visible and guest_book.detail_layer.visible:
|
||||||
|
guest_book._detail_opened_at -= DETAIL_GUARD_BYPASS_MS
|
||||||
|
guest_book._try_close_detail()
|
||||||
|
return true
|
||||||
|
if current == "game" and game != null and game.overlay.visible:
|
||||||
|
game.hide_win()
|
||||||
|
return true
|
||||||
|
if current == "home":
|
||||||
|
_show_quit_confirm()
|
||||||
|
return true
|
||||||
|
go_back()
|
||||||
|
return true
|
||||||
|
|
||||||
|
|
||||||
|
const DETAIL_GUARD_BYPASS_MS := 300
|
||||||
|
|
||||||
|
|
||||||
|
func _build_quit_confirm() -> void:
|
||||||
|
quit_layer = ColorRect.new()
|
||||||
|
quit_layer.color = Color(0.18, 0.12, 0.08, 0.62)
|
||||||
|
quit_layer.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||||
|
quit_layer.mouse_filter = Control.MOUSE_FILTER_STOP
|
||||||
|
quit_layer.gui_input.connect(func(event: InputEvent) -> void:
|
||||||
|
if event is InputEventMouseButton and event.pressed and event.button_index == MOUSE_BUTTON_LEFT:
|
||||||
|
_hide_quit_confirm()
|
||||||
|
)
|
||||||
|
quit_layer.visible = false
|
||||||
|
add_child(quit_layer)
|
||||||
|
|
||||||
|
var center := CenterContainer.new()
|
||||||
|
center.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||||
|
center.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||||
|
quit_layer.add_child(center)
|
||||||
|
|
||||||
|
var panel := UI.panel(Palette.CREAM, 24, 16)
|
||||||
|
var max_width: int = max(240, int(get_viewport_rect().size.x) - 32)
|
||||||
|
panel.custom_minimum_size = Vector2(min(320, max_width), 0)
|
||||||
|
panel.mouse_filter = Control.MOUSE_FILTER_STOP
|
||||||
|
center.add_child(panel)
|
||||||
|
|
||||||
|
var box := VBoxContainer.new()
|
||||||
|
box.add_theme_constant_override("separation", 10)
|
||||||
|
panel.add_child(box)
|
||||||
|
box.add_child(UI.heading("Leave Ratdoku?", 20))
|
||||||
|
var body := UI.label("Thanks for playing. Come back tomorrow for a new daily room.", 13, Palette.MUTED)
|
||||||
|
body.horizontal_alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||||
|
box.add_child(body)
|
||||||
|
|
||||||
|
var actions := HBoxContainer.new()
|
||||||
|
actions.add_theme_constant_override("separation", 8)
|
||||||
|
box.add_child(actions)
|
||||||
|
var cancel := UI.button("Cancel", false, 46)
|
||||||
|
cancel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||||
|
cancel.pressed.connect(_hide_quit_confirm)
|
||||||
|
actions.add_child(cancel)
|
||||||
|
quit_button = UI.button("Quit", false, 46)
|
||||||
|
quit_button.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||||
|
_apply_red_style(quit_button)
|
||||||
|
quit_button.pressed.connect(func() -> void: get_tree().quit())
|
||||||
|
actions.add_child(quit_button)
|
||||||
|
|
||||||
|
|
||||||
|
func _show_quit_confirm() -> void:
|
||||||
|
quit_layer.visible = true
|
||||||
|
quit_layer.move_to_front()
|
||||||
|
|
||||||
|
|
||||||
|
func _hide_quit_confirm() -> void:
|
||||||
|
quit_layer.visible = false
|
||||||
|
|
||||||
|
|
||||||
|
func _apply_red_style(button: Button) -> void:
|
||||||
|
var color := Palette.RED
|
||||||
|
button.add_theme_stylebox_override("normal", _red_box(color))
|
||||||
|
button.add_theme_stylebox_override("hover", _red_box(color.lightened(0.07)))
|
||||||
|
button.add_theme_stylebox_override("pressed", _red_box(color.darkened(0.10)))
|
||||||
|
button.add_theme_stylebox_override("focus", _red_box(color))
|
||||||
|
button.add_theme_color_override("font_color", Palette.WHITE)
|
||||||
|
button.add_theme_color_override("font_hover_color", Palette.WHITE)
|
||||||
|
button.add_theme_color_override("font_pressed_color", Palette.WHITE)
|
||||||
|
button.add_theme_color_override("font_focus_color", Palette.WHITE)
|
||||||
|
|
||||||
|
|
||||||
|
func _red_box(color: Color) -> StyleBoxFlat:
|
||||||
|
var style := StyleBoxFlat.new()
|
||||||
|
style.bg_color = color
|
||||||
|
style.corner_radius_top_left = 26
|
||||||
|
style.corner_radius_top_right = 26
|
||||||
|
style.corner_radius_bottom_left = 26
|
||||||
|
style.corner_radius_bottom_right = 26
|
||||||
|
style.content_margin_left = 16
|
||||||
|
style.content_margin_right = 16
|
||||||
|
style.content_margin_top = 10
|
||||||
|
style.content_margin_bottom = 10
|
||||||
|
return style
|
||||||
@@ -51,6 +51,19 @@ func _ready() -> void:
|
|||||||
scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED
|
scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED
|
||||||
column.add_child(scroll)
|
column.add_child(scroll)
|
||||||
|
|
||||||
|
# Confirm/Cancel stay visible instead of being hidden below the scroll.
|
||||||
|
var actions := HBoxContainer.new()
|
||||||
|
actions.add_theme_constant_override("separation", 8)
|
||||||
|
column.add_child(actions)
|
||||||
|
var cancel := UI.button("Cancel", false, 46)
|
||||||
|
cancel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||||
|
cancel.pressed.connect(_on_cancel)
|
||||||
|
actions.add_child(cancel)
|
||||||
|
var confirm := UI.button("Confirm", true, 46)
|
||||||
|
confirm.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||||
|
confirm.pressed.connect(_on_confirm)
|
||||||
|
actions.add_child(confirm)
|
||||||
|
|
||||||
var content := VBoxContainer.new()
|
var content := VBoxContainer.new()
|
||||||
content.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
content.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||||
content.add_theme_constant_override("separation", 8)
|
content.add_theme_constant_override("separation", 8)
|
||||||
@@ -99,18 +112,6 @@ func _ready() -> void:
|
|||||||
status_label.custom_minimum_size = Vector2(0, 22)
|
status_label.custom_minimum_size = Vector2(0, 22)
|
||||||
content.add_child(status_label)
|
content.add_child(status_label)
|
||||||
|
|
||||||
var actions := HBoxContainer.new()
|
|
||||||
actions.add_theme_constant_override("separation", 8)
|
|
||||||
content.add_child(actions)
|
|
||||||
var cancel := UI.button("Cancel", false, 46)
|
|
||||||
cancel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
|
||||||
cancel.pressed.connect(_on_cancel)
|
|
||||||
actions.add_child(cancel)
|
|
||||||
var confirm := UI.button("Confirm", true, 46)
|
|
||||||
confirm.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
|
||||||
confirm.pressed.connect(_on_confirm)
|
|
||||||
actions.add_child(confirm)
|
|
||||||
|
|
||||||
UI.pass_scroll_input(content)
|
UI.pass_scroll_input(content)
|
||||||
SaveGame.progress_changed.connect(refresh)
|
SaveGame.progress_changed.connect(refresh)
|
||||||
refresh()
|
refresh()
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|
||||||
@@ -151,6 +155,19 @@ func reset_progress() -> void:
|
|||||||
data["completed_rooms"] = []
|
data["completed_rooms"] = []
|
||||||
data["unlocked_guests"] = []
|
data["unlocked_guests"] = []
|
||||||
data["last_room"] = 0
|
data["last_room"] = 0
|
||||||
|
|
||||||
|
# Room-based unlocks can disappear after a reset; never leave a locked
|
||||||
|
# frame or guest avatar equipped.
|
||||||
|
var frame := Frames.by_id(selected_frame())
|
||||||
|
if (
|
||||||
|
frame.is_empty()
|
||||||
|
or rooms_completed() < int(frame.get("rooms", 0))
|
||||||
|
or best_streak() < int(frame.get("streak", 0))
|
||||||
|
):
|
||||||
|
data["profile_frame"] = "plain"
|
||||||
|
if not Avatars.is_unlocked(selected_avatar()):
|
||||||
|
data["avatar_id"] = "crumb"
|
||||||
|
|
||||||
save_game()
|
save_game()
|
||||||
progress_changed.emit()
|
progress_changed.emit()
|
||||||
|
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class_name Version
|
class_name Version
|
||||||
extends RefCounted
|
extends RefCounted
|
||||||
|
|
||||||
const NUMBER := "0.6.0-alpha"
|
const NUMBER := "0.7.0-alpha"
|
||||||
const CODENAME := "New Looks & Streaks"
|
const CODENAME := "Hotel Tunes"
|
||||||
const BUILD_DATE := "2026-12-02"
|
const BUILD_DATE := "2026-12-04"
|
||||||
const BUILD_LABEL := "v0.6.0-alpha · build 2026-12-02"
|
const BUILD_LABEL := "v0.7.0-alpha · build 2026-12-04"
|
||||||
@@ -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)"
|
||||||
|
|||||||
@@ -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")
|
||||||
@@ -317,6 +317,7 @@ func _test_daily(save) -> void:
|
|||||||
all_valid = false
|
all_valid = false
|
||||||
distinct[i] = true
|
distinct[i] = true
|
||||||
_check(all_valid, "30 consecutive dates should all produce valid daily indices")
|
_check(all_valid, "30 consecutive dates should all produce valid daily indices")
|
||||||
|
_check(distinct.size() == 30, "30 consecutive dates should visit all 30 rooms")
|
||||||
_note("distinct daily levels across 30 consecutive days: %d" % distinct.size())
|
_note("distinct daily levels across 30 consecutive days: %d" % distinct.size())
|
||||||
|
|
||||||
_reset_to_clean(save)
|
_reset_to_clean(save)
|
||||||
|
|||||||
@@ -46,12 +46,32 @@ func _run() -> void:
|
|||||||
await _test_daily(main, save)
|
await _test_daily(main, save)
|
||||||
await _test_campaign(main, save)
|
await _test_campaign(main, save)
|
||||||
await _test_guest_book(main)
|
await _test_guest_book(main)
|
||||||
|
await _test_back(main)
|
||||||
|
await _test_reset_fallback(main, save)
|
||||||
_restore_defaults(save)
|
_restore_defaults(save)
|
||||||
|
|
||||||
print("QA UI: ", "PASS" if failures == 0 else "FAIL (%d)" % failures)
|
print("QA UI: ", "PASS" if failures == 0 else "FAIL (%d)" % failures)
|
||||||
quit(0 if failures == 0 else 1)
|
quit(0 if failures == 0 else 1)
|
||||||
|
|
||||||
|
|
||||||
|
func _test_reset_fallback(main, save) -> void:
|
||||||
|
main.show_screen("home", false)
|
||||||
|
await process_frame
|
||||||
|
save.data["avatar_id"] = "pepper"
|
||||||
|
save.data["profile_frame"] = "paper"
|
||||||
|
save.data["completed_rooms"] = ["a", "b", "c", "d", "e"]
|
||||||
|
save.save_game()
|
||||||
|
save.progress_changed.emit()
|
||||||
|
await process_frame
|
||||||
|
_check(main.home.mascot_caption.text.find("Pepper") >= 0, "Home caption should follow the chosen avatar")
|
||||||
|
|
||||||
|
save.reset_progress()
|
||||||
|
await process_frame
|
||||||
|
_check(save.selected_frame() == "plain", "reset should clear a room-locked frame")
|
||||||
|
_check(save.selected_avatar() == "crumb", "reset should clear a locked guest avatar")
|
||||||
|
_check(main.home.mascot_caption.text.find("Crumb") >= 0, "Home caption should return to Crumb")
|
||||||
|
|
||||||
|
|
||||||
func _test_screen_cycle(main) -> void:
|
func _test_screen_cycle(main) -> void:
|
||||||
var expected: Array[String] = ["home", "game", "guest_book", "rules", "profile", "streak"]
|
var expected: Array[String] = ["home", "game", "guest_book", "rules", "profile", "streak"]
|
||||||
_check(main.screens.size() == expected.size(), "Main should expose all six screens")
|
_check(main.screens.size() == expected.size(), "Main should expose all six screens")
|
||||||
@@ -84,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)
|
||||||
@@ -148,6 +173,58 @@ func _test_settings(main, save) -> void:
|
|||||||
main.show_screen("home", false)
|
main.show_screen("home", false)
|
||||||
|
|
||||||
|
|
||||||
|
func _test_back(main) -> void:
|
||||||
|
var back_event := InputEventAction.new()
|
||||||
|
back_event.action = "ui_cancel"
|
||||||
|
back_event.pressed = true
|
||||||
|
|
||||||
|
main.show_screen("home", false)
|
||||||
|
await process_frame
|
||||||
|
main._input(back_event)
|
||||||
|
await process_frame
|
||||||
|
_check(main.quit_layer.visible, "Android back on Home should open quit confirmation")
|
||||||
|
main._input(back_event)
|
||||||
|
await process_frame
|
||||||
|
_check(not main.quit_layer.visible, "second back should dismiss quit confirmation")
|
||||||
|
|
||||||
|
main.open_settings("home")
|
||||||
|
await process_frame
|
||||||
|
main._input(back_event)
|
||||||
|
await process_frame
|
||||||
|
_check(not main.settings_sheet.visible, "back should close the settings sheet")
|
||||||
|
|
||||||
|
main.open_settings("home")
|
||||||
|
await process_frame
|
||||||
|
main.settings_sheet._on_reset()
|
||||||
|
await process_frame
|
||||||
|
main._input(back_event)
|
||||||
|
await process_frame
|
||||||
|
_check(
|
||||||
|
not main.settings_sheet.confirm_layer.visible and main.settings_sheet.visible,
|
||||||
|
"back should dismiss a confirmation before closing settings"
|
||||||
|
)
|
||||||
|
main.close_settings()
|
||||||
|
|
||||||
|
main.show_screen("guest_book", false)
|
||||||
|
await process_frame
|
||||||
|
main.guest_book._show_detail(Guests.by_id("miso"))
|
||||||
|
await process_frame
|
||||||
|
main._input(back_event)
|
||||||
|
await process_frame
|
||||||
|
_check(not main.guest_book.detail_layer.visible, "back should close the guest detail")
|
||||||
|
|
||||||
|
main.show_screen("game", false)
|
||||||
|
main.game.start_level(0)
|
||||||
|
await process_frame
|
||||||
|
main.game.overlay.visible = true
|
||||||
|
main.game.win_shown = true
|
||||||
|
main._input(back_event)
|
||||||
|
await process_frame
|
||||||
|
_check(not main.game.overlay.visible, "back should close the win overlay first")
|
||||||
|
_check(not main.game.win_shown, "win state should clear when the overlay closes")
|
||||||
|
main.show_screen("home", false)
|
||||||
|
|
||||||
|
|
||||||
func _test_profile(main, save) -> void:
|
func _test_profile(main, save) -> void:
|
||||||
# Five campaign rooms and a three-day streak unlock Paper and Regular.
|
# Five campaign rooms and a three-day streak unlock Paper and Regular.
|
||||||
save.reset_progress()
|
save.reset_progress()
|
||||||
@@ -249,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)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{"id":"54bb395d-3e60-4c94-b525-85523901575b","revision":0,"last_node_id":501,"last_link_id":903,"nodes":[{"id":459,"type":"bc1c967a-7f6a-4be9-a372-dad16e4f28e3","pos":[480,2420],"size":[420,760],"flags":{},"order":5,"mode":0,"inputs":[{"name":"resolution","type":"INT","widget":{"name":"resolution"},"link":null},{"label":"positive_prompt","localized_name":"prompt","name":"prompt","type":"STRING","widget":{"name":"prompt"},"link":null},{"label":"refine_prompt","name":"switch_1","type":"BOOLEAN","widget":{"name":"switch_1"},"link":null},{"name":"thinking","shape":7,"type":"BOOLEAN","widget":{"name":"thinking"},"link":null},{"name":"max_length","type":"INT","widget":{"name":"max_length"},"link":null},{"name":"negative_prompt","type":"STRING","widget":{"name":"negative_prompt"},"link":null},{"name":"cfg","type":"FLOAT","widget":{"name":"cfg"},"link":null},{"label":"steps","name":"steps","type":"INT","widget":{"name":"steps"},"link":null},{"label":"custom_size","name":"switch","type":"BOOLEAN","widget":{"name":"switch"},"link":null},{"localized_name":"width","name":"width","type":"INT","widget":{"name":"width"},"link":null},{"localized_name":"height","name":"height","type":"INT","widget":{"name":"height"},"link":null},{"label":"sampler","name":"scheduler","type":"COMBO","widget":{"name":"scheduler"},"link":null},{"label":"scheduler","name":"scheduler_1","type":"COMBO","widget":{"name":"scheduler_1"},"link":null},{"name":"seed","type":"INT","widget":{"name":"seed"},"link":null},{"name":"unet_name","type":"COMBO","widget":{"name":"unet_name"},"link":null},{"name":"clip_name","type":"COMBO","widget":{"name":"clip_name"},"link":null},{"name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"link":null},{"label":"cache_device","name":"device","type":"COMBO","widget":{"name":"device"},"link":null},{"label":"dtype","name":"dtype","type":"COMBO","widget":{"name":"dtype"},"link":null},{"label":"PE_model","name":"clip_name_1","type":"COMBO","widget":{"name":"clip_name_1"},"link":null},{"label":"image_1","name":"images.image_1","type":"IMAGE","link":704},{"label":"image_2","name":"images.image_2","shape":7,"type":"IMAGE","link":728},{"label":"image_3","name":"images.image_3","shape":7,"type":"IMAGE","link":null},{"label":"image_4","name":"images.image_4","shape":7,"type":"IMAGE","link":null},{"label":"image_5","name":"images.image_5_1","shape":7,"type":"IMAGE","link":null},{"label":"image_6","name":"images.image_6","shape":7,"type":"IMAGE","link":null},{"label":"image_7","name":"images.image_7","shape":7,"type":"IMAGE","link":null},{"label":"image_8","name":"images.image_8","shape":7,"type":"IMAGE","link":null},{"label":"image_9","name":"images.image_9","shape":7,"type":"IMAGE","link":null},{"label":"image_10","name":"images.image_10","shape":7,"type":"IMAGE","link":null}],"outputs":[{"localized_name":"IMAGE","name":"IMAGE","type":"IMAGE","links":[672]}],"properties":{"previewExposures":[]},"widgets_values":[0,"Replace costumes for the character",false,false,4096,"",1,25,false,1024,1024,"euler","simple",891836227295375,"qwen_image_2.1_int8_convrot.safetensors","qwen3vl_8b_int8_convrot.safetensors","qwen_image_2.1_vae_bf16.safetensors","auto","default","qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors"],"widgets_values_named":{"resolution":0,"prompt":"Replace costumes for the character","switch_1":false,"thinking":false,"max_length":4096,"negative_prompt":"","cfg":1,"steps":25,"switch":false,"width":1024,"height":1024,"scheduler":"euler","scheduler_1":"simple","seed":891836227295375,"unet_name":"qwen_image_2.1_int8_convrot.safetensors","clip_name":"qwen3vl_8b_int8_convrot.safetensors","vae_name":"qwen_image_2.1_vae_bf16.safetensors","device":"auto","dtype":"default","clip_name_1":"qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors"}},{"id":461,"type":"SaveImageAdvanced","pos":[1410,2420],"size":[710,760],"flags":{},"order":6,"mode":0,"showAdvanced":true,"inputs":[{"localized_name":"images","name":"images","type":"IMAGE","link":672},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null},{"localized_name":"format","name":"format","type":"COMFY_DYNAMICCOMBO_V3","widget":{"name":"format"},"link":null},{"localized_name":"bit_depth","name":"format.bit_depth","type":"COMBO","widget":{"name":"format.bit_depth"},"link":null},{"localized_name":"input_color_space","name":"format.input_color_space","type":"COMBO","widget":{"name":"format.input_color_space"},"link":null},{"localized_name":"channels","name":"format.channels","shape":7,"type":"COMBO","widget":{"name":"format.channels"},"link":null}],"outputs":[{"localized_name":"images","name":"images","type":"IMAGE","links":[708]}],"properties":{},"widgets_values":["Qwen_image_2.1","png","8-bit","sRGB","auto"],"widgets_values_named":{"filename_prefix":"Qwen_image_2.1","format":"png","format.bit_depth":"8-bit","format.input_color_space":"sRGB","format.channels":"auto"}},{"id":463,"type":"MarkdownNLine truncated
|
||||||
@@ -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)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||