Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78f1dbaa31 | ||
|
|
b4fd03a8a4 | ||
|
|
0cc08de31b | ||
|
|
2eff00e59d | ||
|
|
898dedde94 | ||
|
|
f9ab1c26a0 | ||
|
|
804f68699d | ||
|
|
d0be689faa | ||
|
|
c91586b4a1 | ||
|
|
7abd1226cb | ||
|
|
3587c7bd64 | ||
|
|
ea0f80664f | ||
|
|
bbfc35f79c | ||
|
|
077c08bb5f | ||
|
|
48c14864a4 | ||
|
|
3c2ead0be1 |
No files matched your search
@@ -2,6 +2,64 @@
|
|||||||
|
|
||||||
All notable alpha milestones for Ratdoku.
|
All notable alpha milestones for Ratdoku.
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
- Chosen avatar appears on Home and in Profile. Frames stack over any avatar.
|
||||||
|
- New **Daily Streak** screen with a big current streak, best-streak pill, Monday–Sunday completion calendar, next-frame goal, and a visual 7-day gift marker.
|
||||||
|
- Save format moves to version 4 with `avatar_id` and daily completion history.
|
||||||
|
- QA updated for avatars, streak history, the new screens, and save migrations.
|
||||||
|
- Android debug APK rebuilt at version `0.6.0` (version code 12).
|
||||||
|
|
||||||
|
## v0.5.3-alpha — Crisp Icons
|
||||||
|
|
||||||
|
- Icon SVGs now import at 120px intrinsic size instead of 24px, so buttons stay sharp on high-density phones.
|
||||||
|
- Round buttons expand the high-res icon and use content margins to keep the original visual icon size.
|
||||||
|
- Added QA that checks every icon texture is at least 96px and that round buttons use expansion and margins.
|
||||||
|
- Android debug APK rebuilt at version `0.5.3` (version code 11).
|
||||||
|
|
||||||
|
## v0.5.2-alpha — Clean Slate
|
||||||
|
|
||||||
|
- Replaced the native reset/restart dialog with a themed in-app confirmation card: cream panel, Fredoka heading, wrapped body, and full-width Cancel / destructive action buttons.
|
||||||
|
- The confirmation panel fits the 360dp screen, and tapping outside cancels.
|
||||||
|
- Disabled the Godot boot splash and set the startup background to the app's cream colour.
|
||||||
|
- Added UI QA checks for both confirmation dialogs and a reset-dialog screenshot.
|
||||||
|
- Android debug APK rebuilt at version `0.5.2` (version code 10).
|
||||||
|
|
||||||
|
## v0.5.1-alpha — QA & Stability
|
||||||
|
|
||||||
|
- Fixed a crash when selecting a profile frame: the frame grid no longer frees the card that is still emitting `pressed`.
|
||||||
|
- Frame, avatar, and Guest Book frame rebuilds now use deferred/queued deletion so signal handlers never free live nodes.
|
||||||
|
- Added QA suites for save migrations, daily streaks, frames, level data, navigation, and input gestures.
|
||||||
|
- Added `tools/qa_all.ps1`: one command runs the class scan, every test suite, screenshots, an optional APK build, and fails on any engine error in the log.
|
||||||
|
- Android debug APK rebuilt at version `0.5.1` (version code 9).
|
||||||
|
|
||||||
## v0.5.0-alpha — Daily Rooms & Frames
|
## v0.5.0-alpha — Daily Rooms & Frames
|
||||||
|
|
||||||
- New **Daily room**: one of the 30 verified rooms each day, chosen deterministically from the local date.
|
- New **Daily room**: one of the 30 verified rooms each day, chosen deterministically from the local date.
|
||||||
|
|||||||
@@ -16,9 +16,10 @@ 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.
|
- The **Daily room** changes each day and tracks a streak. All 30 rooms rotate once before repeating. Replaying the same day never counts twice.
|
||||||
- Tap **Crumb** in the top-left to open your Profile, where you can wear unlocked frames.
|
- 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.
|
||||||
- **No guessing is required.** Every room has exactly one solution.
|
- **No guessing is required.** Every room has exactly one solution.
|
||||||
@@ -40,8 +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.
|
- **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.
|
||||||
- **Profile** — Crumb's framed portrait, rooms completed, current and best daily streaks, and a selectable frame grid.
|
- **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.
|
||||||
- **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
|
||||||
@@ -125,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:
|
||||||
|
|
||||||
@@ -133,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
|
||||||
|
|
||||||
@@ -146,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.5.0` (version code 8)
|
- Version: `0.6.3` (version code 15)
|
||||||
- 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.5.0-alpha · build 2026-12-02`
|
- Build label: `v0.6.3-alpha · build 2026-12-03`
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
@@ -188,11 +190,19 @@ If you want a Play Store build, switch `gradle_build/export_format` to AAB, use
|
|||||||
--headless --path . --script res://tools/ui_test.gd
|
--headless --path . --script res://tools/ui_test.gd
|
||||||
```
|
```
|
||||||
|
|
||||||
`ui_test.gd` checks the double-tap default and version 1 migration, daily streak math and level selection, frame unlocks and selection persistence, settings propagation, hold/double-tap placement, tap-vs-drag guards in the Guest Book, scroll pass-through over cards and rules rows, the close guard, room-1 → Pepper unlock, gallery progress, and the interactive 5×5 tutorial. Both tests reset the save when they finish.
|
`ui_test.gd` checks the double-tap default and save migrations, daily streak math and level selection, avatar and frame selection, settings propagation, hold/double-tap placement, tap-vs-drag guards in the Guest Book, scroll pass-through over cards and rules rows, the close guard, room-1 → Pepper unlock, gallery progress, navigation, and the interactive 5×5 tutorial. Both tests reset the save when they finish.
|
||||||
|
|
||||||
|
Run the whole QA suite (class scan, every test script, log-error scan, optional screenshots, optional APK build) with:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\tools\qa_all.ps1 -Screenshots -Build
|
||||||
|
```
|
||||||
|
|
||||||
|
`qa_all.ps1` fails if any suite is missing, a script does not print its PASS marker, or Godot logs any `ERROR` / `SCRIPT ERROR`. The `qa_core.gd`, `qa_ui.gd`, and `qa_input.gd` suites cover save migrations, daily and frame data, navigation and win overlays, and all input gestures.
|
||||||
|
|
||||||
## Versioning and releases
|
## Versioning and releases
|
||||||
|
|
||||||
The current development build is **v0.5.0-alpha** (“Daily Rooms & Frames”) with the build label on Home and in Settings.
|
The current development build is **v0.6.3-alpha** (“Fair Rotation”) with the build label on Home and in Settings.
|
||||||
|
|
||||||
Gitea repository:
|
Gitea repository:
|
||||||
|
|
||||||
@@ -208,14 +218,21 @@ Alpha releases (all marked prerelease, each with a debug APK and source archive)
|
|||||||
- **v0.4.2-alpha** — finger scrolling works over Guest Book cards, House Rules rows, and Settings rows
|
- **v0.4.2-alpha** — finger scrolling works over Guest Book cards, House Rules rows, and Settings rows
|
||||||
- **v0.4.3-alpha** — double-tap placement is the default, with a one-time migration for older saves
|
- **v0.4.3-alpha** — double-tap placement is the default, with a one-time migration for older saves
|
||||||
- **v0.5.0-alpha** — daily room with streaks, Profile screen, and selectable profile frames
|
- **v0.5.0-alpha** — daily room with streaks, Profile screen, and selectable profile frames
|
||||||
|
- **v0.5.1-alpha** — profile frame selection crash fix, QA suites, and log-guarded test runner
|
||||||
|
- **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.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
|
||||||
|
|
||||||
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.5.0-alpha
|
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.6.3-alpha
|
||||||
|
|
||||||
The v0.5.0-alpha APK is also at:
|
The v0.6.3-alpha APK is also at:
|
||||||
|
|
||||||
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.5.0-alpha/Ratdoku-v0.5.0-alpha.apk`
|
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.6.3-alpha/Ratdoku-v0.6.3-alpha.apk`
|
||||||
|
|
||||||
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.5.0-alpha`.
|
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.6.3-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`).
|
||||||
|
|
||||||
@@ -229,6 +246,7 @@ The version is set in three places: `project.godot` (`config/version`), `scripts
|
|||||||
- Interactive 5×5 tutorial
|
- Interactive 5×5 tutorial
|
||||||
- 25 guest portraits + Crumb
|
- 25 guest portraits + Crumb
|
||||||
- Settings, gallery, rulebook, unlock flow
|
- Settings, gallery, rulebook, unlock flow
|
||||||
- Daily room with streaks, Profile screen, selectable frames (save version 3)
|
- 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 audio yet, no release keystore/AAB yet
|
- No audio yet, 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: 187 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: 56 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: 56 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 |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 264 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 319 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 395 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 402 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 238 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 660 B After Width: | Height: | Size: 662 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 316 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 358 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 414 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 373 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 420 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 299 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 588 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 578 B After Width: | Height: | Size: 580 B |
@@ -0,0 +1,13 @@
|
|||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="120"
|
||||||
|
height="120"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="#e7b45c"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 575 B |
@@ -0,0 +1,13 @@
|
|||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="120"
|
||||||
|
height="120"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="#ffffff"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 575 B |
@@ -1,7 +1,7 @@
|
|||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="24"
|
width="120"
|
||||||
height="24"
|
height="120"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 311 B |
@@ -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=8
|
version/code=15
|
||||||
version/name="0.5.0"
|
version/name="0.6.3"
|
||||||
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,9 +12,11 @@ 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.5.0-alpha"
|
config/version="0.6.3-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/bg_color=Color(0.984314, 0.945098, 0.87451, 1)
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
[gd_scene load_steps=2 format=3]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scripts/Streak.gd" id="1_streak"]
|
||||||
|
|
||||||
|
[node name="Streak" type="Control"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
script = ExtResource("1_streak")
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
class_name Avatars
|
||||||
|
extends RefCounted
|
||||||
|
|
||||||
|
## Selectable profile portraits. Crumb is always available; guest portraits
|
||||||
|
## unlock with the corresponding Guest Book entry.
|
||||||
|
|
||||||
|
static func all() -> Array:
|
||||||
|
var out := [{
|
||||||
|
"id": "crumb",
|
||||||
|
"name": "Crumb",
|
||||||
|
"path": "res://art/crumb_head.png",
|
||||||
|
"room": 0,
|
||||||
|
}]
|
||||||
|
for guest in Guests.all():
|
||||||
|
var id := str(guest.get("id", ""))
|
||||||
|
if id.is_empty():
|
||||||
|
continue
|
||||||
|
out.append({
|
||||||
|
"id": id,
|
||||||
|
"name": str(guest.get("name", id)),
|
||||||
|
"path": Guests.portrait(id, "thumbs"),
|
||||||
|
"room": int(guest.get("unlock_room", 0)),
|
||||||
|
})
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
static func by_id(id: String) -> Dictionary:
|
||||||
|
for avatar in all():
|
||||||
|
if str(avatar.get("id", "")) == id:
|
||||||
|
return avatar
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
|
static func portrait_path(id: String) -> String:
|
||||||
|
var avatar := by_id(id)
|
||||||
|
if avatar.is_empty():
|
||||||
|
return "res://art/crumb_head.png"
|
||||||
|
return str(avatar.get("path", "res://art/crumb_head.png"))
|
||||||
|
|
||||||
|
|
||||||
|
static func is_unlocked(id: String) -> bool:
|
||||||
|
if id == "crumb":
|
||||||
|
return true
|
||||||
|
var avatar := by_id(id)
|
||||||
|
if avatar.is_empty():
|
||||||
|
return false
|
||||||
|
return SaveGame.is_guest_unlocked(id)
|
||||||
|
|
||||||
|
|
||||||
|
static func requirement_text(id: String) -> String:
|
||||||
|
var avatar := by_id(id)
|
||||||
|
if avatar.is_empty():
|
||||||
|
return ""
|
||||||
|
if id == "crumb":
|
||||||
|
return "Always available"
|
||||||
|
return "Meet in Room %d" % int(avatar.get("room", 0))
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://c5700f5m3iuxh
|
||||||
@@ -29,9 +29,47 @@ static func key_from_day_number(day: int) -> String:
|
|||||||
return "%04d-%02d-%02d" % [int(d.get("year", 0)), int(d.get("month", 0)), int(d.get("day", 0))]
|
return "%04d-%02d-%02d" % [int(d.get("year", 0)), int(d.get("month", 0)), int(d.get("day", 0))]
|
||||||
|
|
||||||
|
|
||||||
## Stable per-date room choice. With 30 rooms the pool repeats monthly.
|
## Monday-to-Sunday keys for the week containing today.
|
||||||
|
static func week_keys() -> Array:
|
||||||
|
var date := Time.get_date_dict_from_system()
|
||||||
|
var weekday := int(date.get("weekday", 0)) # Godot: 0 = Sunday.
|
||||||
|
var monday_offset := (weekday + 6) % 7
|
||||||
|
var base := day_number(today_key()) - monday_offset
|
||||||
|
var out := []
|
||||||
|
for i in range(7):
|
||||||
|
out.append(key_from_day_number(base + i))
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
static func weekday_labels() -> Array:
|
||||||
|
return ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
|
||||||
|
|
||||||
|
|
||||||
|
static func goal_text(streak: int) -> String:
|
||||||
|
if streak >= 7:
|
||||||
|
return "Week complete — your 7-day gift is ready."
|
||||||
|
if streak >= 3:
|
||||||
|
return "%d more day%s until the Night Owl frame" % [7 - streak, "" if 7 - 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. 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])
|
||||||