Compare commits

..
20 Commits
Author SHA1 Message Date
Ratdoku Builder e0f712b39c build: restore Android toolchain and verify APK icon
Points the Android build at a portable JDK/SDK in the approved temp folder, hardens QA so export failures cannot false-pass, and confirms the rebuilt APK ships the new gouache launcher icon.
2026-12-05 22:57:33 -06:00
Ratdoku Builder a7a238e418 fix(home): fit layout without scrollbar and give Crumb a cutout
Removes the Home scroll container and tightens spacing so all controls fit at 360x640, including 1.3x text size. Creates a transparent Crumb card cutout for the guest-of-day mascot.
2026-12-05 22:45:40 -06:00
Ratdoku Builder 3cdc3567f3 fix(v0.9): polish pass before release
Clears free mode when starting campaign/daily rooms, rebuilds levels on restore, fixes free win label, makes event claims cycle-aware and event schedule local-day based, grants VIBRATE permission, validates corrupt save values, and fixes Home scrolling, Guest Book close button, event claim contrast, achievement contrast, and difficulty modal spacing. Adds QA for these paths.
2026-12-05 22:05:32 -06:00
Ratdoku Builder 25c918e6a2 feat: guest-of-day mascot and Windows export preset
The Home mascot now features a deterministic guest of the day, tap-cycles unlocked guests with a story teaser, and scales cleanly at large text sizes. Screens stay centered at 360dp on wide aspect ratios. Adds a Windows Desktop export preset.
2026-12-05 17:10:37 -06:00
Ratdoku Builder 9e2776f7c4 feat: guest stories, accessibility and cozy events
v0.9.0-alpha local build. Adds per-guest story vignettes, a scrollable Guest Book story section, live text scaling, Android haptics, a difficulty picker with descriptions, six repeating cosmetic hotel events, and isolated free play using verified symmetry variants. Save format v7 with automatic migration. QA is 9/9 including the free-play uniqueness suite.
2026-12-05 16:44:39 -06:00
Ratdoku Builder e0fd33c25e fix(profile): restore original Crumb portrait in game
The new Krea2 Crumb render is used only for the app icon. Guests keep true headshot avatars.
2026-12-04 05:56:18 -06:00
Ratdoku Builder f2a92e6be2 fix(profile): verify and correct headshots, picker and icon
Verification pass: generated true face close-ups for all avatars, gave the wallpaper picker a real height so previews show, corrected Crumb's headshot, and removed the generic paw from the icon.
2026-12-04 05:48:42 -06:00
Ratdoku Builder a54279ffd1 fix(profile): polish touch scroll, avatars and wallpaper picker
Local-only v0.8.1 build. Achievement rows pass touch drags, avatars use head crops and hide locked identities, difficulty cycles Zen/Easy/Normal, wallpaper setting opens a preview picker, Brie uses the approved render with a text-free sheet, and the app icon is regenerated in gouache style.
2026-12-04 05:37:34 -06:00
Ratdoku Builder 6d302f5cb9 feat(meowdoku): identity, gifts, achievements and wallpapers
Local-only v0.8.0 build. Adds player name/ID, achievements, claimable 7-day gift, daily share/stats, saved boards, 2048px rat-track wallpapers, difficulty/volume settings, and save v6. Not pushed or published.
2026-12-03 21:21:59 -06:00
Ratdoku Builder 5c00b35e90 feat(audio): add instrumental lounge loop and refresh Brie
Local-only v0.7.0 build. Adds a 60-second instrumental Stable Audio 3 loop with a Settings toggle and save version 5, regenerates Brie with small dark eyes and matching gouache style, and updates QA. Not pushed or published.
2026-12-03 19:45:53 -06:00
Ratdoku Builder 5dec96e69e chore(release): v0.6.4-alpha
Bump version name to 0.6.4 and Android version code to 16. Document the final polish items.
2026-12-03 16:29:05 -06:00
Ratdoku Builder c65a33b5f0 polish(streak): add reward milestones and clean Krea2 workflow
Fill the Daily Streak screen with 3-day and 7-day frame progress, and remove the stale template text from the Krea2 CLIPTextEncode node.
2026-12-03 16:29:03 -06:00
Ratdoku Builder 78f1dbaa31 chore(release): v0.6.3-alpha
Bump version name to 0.6.3 and Android version code to 15. Document the QA fixes.
2026-12-03 15:19:31 -06:00
Ratdoku Builder b4fd03a8a4 fix(daily): full 30-room rotation and reset-safe profile
Use a fixed shuffled order so every room appears once before repeats. Keep Profile Confirm/Cancel visible, clear locked avatar/frame on reset, and make Home's avatar caption dynamic.
2026-12-03 15:19:30 -06:00
Ratdoku Builder 0cc08de31b chore(release): v0.6.2-alpha
Bump version name to 0.6.2 and Android version code to 14. Document the new art pipeline.
2026-12-03 11:34:49 -06:00
Ratdoku Builder 2eff00e59d art: regenerate transparent guest portraits
All 25 guests get fresh Krea2 renders cut out with birefnet, a uniform cream outline, and true alpha across thumbs, cards, and board heads. Adds the two saved Uncensored workflows and a second variant per guest in the ignored source folder.
2026-12-03 11:34:47 -06:00
Ratdoku Builder 898dedde94 chore(release): v0.6.1-alpha
Bump version name to 0.6.1 and Android version code to 13. Document Android back navigation.
2026-12-03 00:07:29 -06:00
Ratdoku Builder f9ab1c26a0 fix(android): route hardware back through app navigation
Handle ui_cancel and the Android back-request notification. Back now dismisses overlays in priority order, closes the win overlay, navigates back, and asks for confirmation before quitting on Home.
2026-12-03 00:07:27 -06:00
Ratdoku Builder 804f68699d chore(release): v0.6.0-alpha
Bump version name to 0.6.0 and Android version code to 12. Document avatars and the Daily Streak screen.
2026-12-02 23:57:29 -06:00
Ratdoku Builder d0be689faa feat(profile): selectable avatars and a daily streak view
Profile now has tabbed Avatar/Frame pickers with preview and Confirm/Cancel. Crumb plus unlocked guest portraits can be chosen as the avatar. A new Daily Streak screen shows the current streak, best streak, weekly calendar, next-frame goal, and a 7-day gift marker. Save format moves to version 4 with avatar_id and completion history.
2026-12-02 23:57:28 -06:00
125 changed files with 8996 additions and 184 deletions

No files matched your search

+84
View File
@@ -2,6 +2,90 @@
All notable alpha milestones for Ratdoku. All notable alpha milestones for Ratdoku.
## v0.9.0-alpha — Hotel Life (local build)
- Added three story vignettes for every guest, revealed on first meeting, 3rd visit, and 7th visit; the Guest Book detail now has a scrollable Story section.
- Added a 100/115/130% text size setting that applies live, plus an Android haptics toggle.
- Difficulty now opens a picker with plain-language Zen / Easy / Normal descriptions instead of cycling inline.
- Added six repeating cozy hotel events with a Home banner, event detail, daily-room goal, and a claimable cosmetic gift and frame.
- The Home mascot now shows a deterministic guest of the day; tapping cycles through unlocked guests with a story teaser.
- Added Free play with 30 deterministic symmetry variants of the verified boards; it never writes progress, unlocks, achievements, or guest stories.
- Save format is now v7 with guest notes and event state; existing saves migrate automatically.
- Full QA is 9/9 stages, including the free-play uniqueness suite and Android build.
## v0.8.1-alpha — UI Polish
- Fixed touch scrolling on dynamically rebuilt achievement rows.
- Avatar previews now use circular head crops instead of full-body thumbnails.
- Locked guest avatars now show `???` and room number instead of revealing name and portrait.
- Difficulty cycle is now Zen → Easy → Normal.
- Wallpaper setting opens a themed picker with real image previews and Confirm/Cancel.
- Regenerated Brie with the approved cheese-and-notebook render and a text-free character sheet.
- Added a new Krea2-generated app icon in the project's gouache style.
- Verification pass replaced the circular full-body guest crops with true face close-ups; Crumb keeps the original in-game portrait.
- Verification pass fixed the wallpaper picker panel height so all five previews are visible and scrollable.
- Verification pass removed the generic animal paw from the icon; rat-track motifs stay on the wallpapers only.
## v0.8.0-alpha — Meowdoku Lessons (local build)
- Added editable player name and generated player ID in Profile.
- Added an achievements list, a claimable 7-day gift that unlocks the Gold wallpaper, and a Share result button with daily totals and next-room countdown.
- Added save/resume for in-progress campaign and daily boards, with per-day completion times.
- Added five 2048×2048 wallpaper backgrounds with rat paw-print motifs and a cream veil for readability.
- Added Normal / Easy / Zen difficulty presets, music volume, and SFX settings.
- Save format moves to version 6. All QA stages pass.
- Not yet published to Gitea.
## 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
- 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 ## 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. - Icon SVGs now import at 120px intrinsic size instead of 24px, so buttons stay sharp on high-density phones.
+30 -19
View File
@@ -16,9 +16,11 @@ 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. 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 wear unlocked frames. - Tap **Crumb** in the top-left to open your Profile, where you can edit your name, see your ID, choose an avatar and frame, and track achievements.
- Keep a 7-day streak to claim the weekly gift, which unlocks the Gold wallpaper. Share your daily result from the Streak screen.
- 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 +42,10 @@ 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** — Crumb's framed portrait, rooms completed, current and best daily streaks, and a selectable frame grid. - **Profile** — editable player name and generated ID, framed avatar preview, rooms completed, current and best daily streaks, tabbed Avatar / Frame pickers with Confirm / Cancel, and an achievements list. Guest portraits unlock with their Guest Book entry.
- **Daily Streak** — big current streak, best-streak pill, weekly calendar with per-day times, total dailies solved, next-daily countdown, Share result, claimable 7-day gift, and streak reward milestones.
- **Wallpapers & difficulty** — five 2048×2048 rat-track wallpapers, plus Normal / Easy / Zen difficulty presets in Settings.
- **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 +129,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 +137,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 +150,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.3` (version code 11) - Version: `0.9.0` (version code 20)
- Min SDK: 24 (Android 7.0) - Min SDK: 24 (Android 7.0)
- Target SDK: 36 - Target SDK: 36
- Size: about 41 MB - Size: about 54 MB
- Portrait orientation - Portrait orientation
- Build label: `v0.5.3-alpha · build 2026-12-02` - Build label: `v0.9.0-alpha · build 2026-12-05`
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,7 +192,7 @@ 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: Run the whole QA suite (class scan, every test script, log-error scan, optional screenshots, optional APK build) with:
@@ -200,7 +204,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.5.3-alpha** (“Crisp Icons”) with the build label on Home and in Settings. The current development build is **v0.9.0-alpha** (“Hotel Life”) with the build label on Home and in Settings.
Gitea repository: Gitea repository:
@@ -219,14 +223,20 @@ Alpha releases (all marked prerelease, each with a debug APK and source archive)
- **v0.5.1-alpha** — profile frame selection crash fix, QA suites, and log-guarded test runner - **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.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.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
- **v0.7.0-alpha** — instrumental hotel-lounge music, Music toggle, and Brie refresh
- **v0.8.0-alpha** — player ID, achievements, claimable gift, daily share/stats, board resume, wallpapers
- **v0.8.1-alpha** — touch-scroll fix, headshot avatars, locked-guest privacy, wallpaper picker, difficulty order, new icon
- **v0.9.0-alpha** — guest stories, text scaling, haptics, difficulty picker, cozy events, and free play
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.5.3-alpha The latest published release is v0.8.1-alpha:
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.8.1-alpha
The v0.5.3-alpha APK is also at: `redesign-360` is the branch with the current 360dp work; the local build is v0.9.0-alpha and is not published yet.
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.5.3-alpha/Ratdoku-v0.5.3-alpha.apk`
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.5.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`).
@@ -240,7 +250,8 @@ 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, achievements, wallpapers, saved boards (save version 6)
- Installable Android debug APK - Installable Android debug APK
- No Godot boot splash; the app opens straight to the cream-themed game - No Godot boot splash; the app opens straight to the cream-themed game
- No audio yet, no release keystore/AAB yet - Instrumental hotel-lounge loop with a Music toggle (no lyrics), generated with Stable Audio 3
- No release keystore/AAB yet
Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 KiB

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 KiB

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 KiB

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 487 KiB

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 485 KiB

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 KiB

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 KiB

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 472 KiB

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 KiB

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 401 KiB

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 KiB

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 473 KiB

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 390 KiB

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 493 KiB

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 KiB

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 487 KiB

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 447 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 KiB

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 495 KiB

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 KiB

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 459 KiB

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 KiB

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 KiB

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 KiB

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

+13
View File
@@ -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

+13
View File
@@ -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

+56
View File
@@ -0,0 +1,56 @@
[
{
"id": "rainy_day",
"name": "Rainy Day",
"description": "Rain taps on the windows while the lobby fills with little puddles and borrowed towels. Miso greets every soaked guest with a warm spot by the fire.",
"duration_days": 4,
"featured_guest": "miso",
"reward_frame": "event_rain",
"gift": "Puddle Boot Cover"
},
{
"id": "tea_week",
"name": "Tea Week",
"description": "The tea room stays open all afternoon with an endless pot and a plate of nutmeg biscuits. Nutmeg quietly learns how everyone takes their cup.",
"duration_days": 5,
"featured_guest": "nutmeg",
"reward_frame": "event_tea",
"gift": "Tea Set Treat"
},
{
"id": "harvest_supper",
"name": "Harvest Supper",
"description": "Long tables, warm rolls, and the last bright vegetables of the season. Biscuit makes sure no one leaves the supper with an empty plate.",
"duration_days": 6,
"featured_guest": "biscuit",
"reward_frame": "event_harvest",
"gift": "Harvest Bread Basket"
},
{
"id": "lantern_night",
"name": "Lantern Night",
"description": "Small lanterns line the halls and the lobby glows softly after dark. Pepper keeps a watchful, gentle eye on the night shift.",
"duration_days": 3,
"featured_guest": "pepper",
"reward_frame": "event_lantern",
"gift": "Paper Lantern Charm"
},
{
"id": "book_club",
"name": "Book Club",
"description": "The library pulls up extra chairs for a slow, cosy read together. Mabel recommends just the right story and only shushes when the plot needs it.",
"duration_days": 7,
"featured_guest": "mabel",
"reward_frame": "event_book",
"gift": "Storybook Bookmark"
},
{
"id": "spring_cleaning",
"name": "Spring Cleaning",
"description": "Fresh linens, open windows, and a gentle tidying of every nook. Cocoa leaves the rooms smelling like a quiet Sunday morning.",
"duration_days": 5,
"featured_guest": "cocoa",
"reward_frame": "event_spring",
"gift": "Fresh Linen Bow"
}
]
+150 -25
View File
@@ -9,7 +9,12 @@
"personality": "Eager, a little clumsy, and knows every suitcase by name.", "personality": "Eager, a little clumsy, and knows every suitcase by name.",
"snack": "toasted sesame", "snack": "toasted sesame",
"unlock_room": 0, "unlock_room": 0,
"accent": "#b46a5a" "accent": "#b46a5a",
"stories": [
"Miso skids to a halt in the lobby, breathless, and introduces you to a suitcase he has clearly been waiting all morning to meet. There are toasted sesame crumbs on his whiskers.",
"'Third visit!' Miso beams, producing a suitcase from behind the desk as if he had hidden it just for you. He insists it has always known your name.",
"By now Miso has greeted you at every door in the hotel, usually before you reach it. He presses a warm sesame seed into your paw like a tiny official welcome."
]
}, },
{ {
"id": "hilde", "id": "hilde",
@@ -21,7 +26,12 @@
"personality": "Deadpan, unflappable, and secretly the kindest rat in the hotel.", "personality": "Deadpan, unflappable, and secretly the kindest rat in the hotel.",
"snack": "warm oat milk", "snack": "warm oat milk",
"unlock_room": 0, "unlock_room": 0,
"accent": "#c9a227" "accent": "#c9a227",
"stories": [
"Hilde looks up from folding a sheet, says the weather is 'acceptable,' and quietly sets a saucer of warm oat milk within reach.",
"'You're back,' Hilde says, which from her is practically a fanfare. She had already turned down your corner of the bed before you asked.",
"Hilde has stopped pretending not to leave the good blanket out for you. She calls it 'inventory,' and slides the oat milk a little closer."
]
}, },
{ {
"id": "pip", "id": "pip",
@@ -33,7 +43,12 @@
"personality": "Small, bold, and convinced he can carry anything twice his size.", "personality": "Small, bold, and convinced he can carry anything twice his size.",
"snack": "pumpkin seed", "snack": "pumpkin seed",
"unlock_room": 0, "unlock_room": 0,
"accent": "#8a6f4d" "accent": "#8a6f4d",
"stories": [
"Pip marches up to you, assesses your bags with a solemn squint, and announces he can carry all of them. He starts with the smallest one, just to be fair.",
"Pip has been practicing in the corridor and now hoists your bag with a triumphant squeak. He accepts a pumpkin seed as payment with great dignity.",
"Your bags are already waiting in your room when you arrive, stacked with suspicious precision. Pip denies carrying them twice his size; he says he carried them once, very carefully."
]
}, },
{ {
"id": "nana_fig", "id": "nana_fig",
@@ -45,7 +60,12 @@
"personality": "Has run the front desk since before the hotel had a front door.", "personality": "Has run the front desk since before the hotel had a front door.",
"snack": "fig jam", "snack": "fig jam",
"unlock_room": 0, "unlock_room": 0,
"accent": "#7d6b8a" "accent": "#7d6b8a",
"stories": [
"Nana Fig peers over the front desk and says she has been welcoming folks here since the door was still a curtain. She slides a little pot of fig jam across the counter.",
"'Third time,' Nana Fig says fondly, tapping the ledger. 'The curtain days were louder, but I don't say better.'",
"Nana Fig has taken to keeping your key where she can reach it without looking. She tells you the hotel's oldest stories, and the fig jam, in the same breath."
]
}, },
{ {
"id": "biscuit", "id": "biscuit",
@@ -57,7 +77,12 @@
"personality": "Believes every problem can be solved with a warm roll.", "personality": "Believes every problem can be solved with a warm roll.",
"snack": "buttered toast", "snack": "buttered toast",
"unlock_room": 0, "unlock_room": 0,
"accent": "#d9a441" "accent": "#d9a441",
"stories": [
"Biscuit appears with a flour-dusted apron and a warm roll held out like a solution. 'Everything's better,' she says, 'after the first bite.'",
"Biscuit has remembered which roll you liked and kept one warm, though she claims it was coincidence. There is buttered toast on the side, just in case.",
"The bakery is already glowing when you arrive, and Biscuit waves a roll like a greeting. She says she knew you would come back; the dough had a feeling."
]
}, },
{ {
"id": "pepper", "id": "pepper",
@@ -69,7 +94,12 @@
"personality": "Patrols the halls with a lantern and a very serious expression.", "personality": "Patrols the halls with a lantern and a very serious expression.",
"snack": "black pepper crackers", "snack": "black pepper crackers",
"unlock_room": 1, "unlock_room": 1,
"accent": "#4f5d75" "accent": "#4f5d75",
"stories": [
"Pepper steps out of the dark with his lantern, gives your paperwork a grave once-over, and nods you in. He offers a cracker as though it were an official greeting.",
"'Same hour again,' Pepper says, not quite a question. He has been leaving a cracker on the hall table on the nights you are expected.",
"Pepper's serious expression softens by exactly one whisker-twitch when he sees you. He walks you to your door and says the halls are quieter when you are about."
]
}, },
{ {
"id": "pickle", "id": "pickle",
@@ -81,7 +111,12 @@
"personality": "Grows herbs on the roof and talks to the parsley.", "personality": "Grows herbs on the roof and talks to the parsley.",
"snack": "pickled cucumber", "snack": "pickled cucumber",
"unlock_room": 2, "unlock_room": 2,
"accent": "#7e9c5a" "accent": "#7e9c5a",
"stories": [
"Pickle comes down from the roof with soil on his paws, mid-conversation with someone he calls parsley. He offers you a crisp pickled cucumber and asks what you think of the mint.",
"Pickle wants to know if you noticed the new basil on the roof. He says he grew it for the smell, but keeps glancing at your cucumber like he is waiting for a review.",
"By now Pickle greets the parsley by name and you with a whole jar of pickles. He confides that the parsley likes you; it leaned toward the window the last time you visited."
]
}, },
{ {
"id": "nutmeg", "id": "nutmeg",
@@ -93,7 +128,12 @@
"personality": "Can tell your mood from how you take your tea.", "personality": "Can tell your mood from how you take your tea.",
"snack": "nutmeg biscuit", "snack": "nutmeg biscuit",
"unlock_room": 3, "unlock_room": 3,
"accent": "#b07d4f" "accent": "#b07d4f",
"stories": [
"Nutmeg sets down a cup without asking how you take it, then watches your face for the verdict. A nutmeg biscuit arrives, because she has already decided you need one.",
"'You're taking it sweeter today,' Nutmeg observes, pleased with herself. She is right, and she knows she is right.",
"Nutmeg has your tea ready before you sit down and says your mood is 'excellent company' today. She slides the biscuit over with a look that brooks no argument."
]
}, },
{ {
"id": "mabel", "id": "mabel",
@@ -105,7 +145,12 @@
"personality": "Runs the hotel library and shushes only when absolutely necessary.", "personality": "Runs the hotel library and shushes only when absolutely necessary.",
"snack": "honey candy", "snack": "honey candy",
"unlock_room": 4, "unlock_room": 4,
"accent": "#5b7fa6" "accent": "#5b7fa6",
"stories": [
"Mabel looks up from a towering stack of books, smiles, and points out the quietest chair in the house. A honey candy appears on the armrest, left there without a word.",
"Mabel has set aside a book she thinks suits you, though she only says 'filed it nearby.' She did not shush once this visit, which is her version of a celebration.",
"Mabel now keeps a honey candy in the same spot every time, and a bookmark in your book. She says a good reader is worth the fuss, then goes back to shelving very quietly."
]
}, },
{ {
"id": "mochi", "id": "mochi",
@@ -117,7 +162,12 @@
"personality": "Plays the tiny violin in the lobby at dusk.", "personality": "Plays the tiny violin in the lobby at dusk.",
"snack": "sweet rice cake", "snack": "sweet rice cake",
"unlock_room": 5, "unlock_room": 5,
"accent": "#c05b6b" "accent": "#c05b6b",
"stories": [
"As dusk settles, Mochi lifts his tiny violin and plays a note that makes the lobby go still. He offers you a sweet rice cake and says the next one is for you.",
"Mochi has begun a little tune he calls 'the visiting one,' though he is modest about it. He plays it while you unwrap your rice cake.",
"The violin is already tuned when you come in, and Mochi grins like he had been listening for your footsteps. He says the lobby sounds better with you in it, then plays your tune again."
]
}, },
{ {
"id": "crumpet", "id": "crumpet",
@@ -129,7 +179,12 @@
"personality": "Up before the sun, flour on his nose by sunrise.", "personality": "Up before the sun, flour on his nose by sunrise.",
"snack": "warm crumpet", "snack": "warm crumpet",
"unlock_room": 6, "unlock_room": 6,
"accent": "#b57a4a" "accent": "#b57a4a",
"stories": [
"Crumpet opens the door with flour up to his elbows, apologizing for the mess before anyone mentions it. He hands you a warm crumpet and says the day is a good one so far.",
"'You're an early one,' Crumpet says, delighted, as if you had joined a secret club. He has kept the first crumpet of the batch for you.",
"There is flour on Crumpet's nose and a crumpet on the counter with your name on the napkin. He claims he gets up early for the bread; the crumpet says otherwise."
]
}, },
{ {
"id": "waffle", "id": "waffle",
@@ -141,7 +196,12 @@
"personality": "Presses a perfect crease and never comments on the mess.", "personality": "Presses a perfect crease and never comments on the mess.",
"snack": "maple candy", "snack": "maple candy",
"unlock_room": 7, "unlock_room": 7,
"accent": "#c78f52" "accent": "#c78f52",
"stories": [
"Waffle takes your coat with a nod and returns it with a crease so sharp it looks newly made. He says nothing about the mud on your boots, only sets a maple candy by the door.",
"Waffle has your coat ready before you ask, pressed to a fare-thee-well. He notes, very gently, that it is holding up beautifully.",
"Waffle now keeps a maple candy in your coat pocket, and never once mentions the mud. He calls the crease 'a small kindness,' which is the most he will say about it."
]
}, },
{ {
"id": "cocoa", "id": "cocoa",
@@ -153,7 +213,12 @@
"personality": "Makes the linens smell like a quiet Sunday morning.", "personality": "Makes the linens smell like a quiet Sunday morning.",
"snack": "dark chocolate", "snack": "dark chocolate",
"unlock_room": 8, "unlock_room": 8,
"accent": "#6f5a4d" "accent": "#6f5a4d",
"stories": [
"Cocoa emerges from a cloud of warm linen, and the whole hallway smells like a slow Sunday. She tucks a square of dark chocolate into your paw and tells you the sheets are ready.",
"Cocoa has set aside the softest blanket without being asked, saying only that it 'needed airing.' She knows by now which side of the bed you favor.",
"Cocoa's linens are folded in your favorite way and there is chocolate waiting on the pillow. She says a well-rested guest is a quiet triumph, and means it."
]
}, },
{ {
"id": "olive", "id": "olive",
@@ -165,7 +230,12 @@
"personality": "Knows a good route to anywhere, and three better ones.", "personality": "Knows a good route to anywhere, and three better ones.",
"snack": "olive tapenade", "snack": "olive tapenade",
"unlock_room": 9, "unlock_room": 9,
"accent": "#7a6b9a" "accent": "#7a6b9a",
"stories": [
"Olive draws you a route on a scrap of paper, then draws two more 'in case you feel adventurous.' She sets down olive tapenade and insists the long way is the nicest.",
"Olive asks where you are going, then suggests a path that was not on any map you have seen. There is tapenade waiting, because of course there is.",
"Olive has three routes ready for you before you name a destination. She confides that her favorite is the one past the kitchen, where the smells are best."
]
}, },
{ {
"id": "brie", "id": "brie",
@@ -177,7 +247,12 @@
"personality": "Reviews the breakfast with one raised eyebrow.", "personality": "Reviews the breakfast with one raised eyebrow.",
"snack": "soft cheese", "snack": "soft cheese",
"unlock_room": 10, "unlock_room": 10,
"accent": "#b8a27a" "accent": "#b8a27a",
"stories": [
"Brie takes one bite of the breakfast, raises a single eyebrow, and says only, 'Prompt.' She allows you a sliver of soft cheese from her own plate.",
"Brie's eyebrow lifts again, but this time there is a trace of a smile. She says the toast has improved since your last visit and refuses to explain how she knows.",
"Brie has begun setting a place for you at breakfast without comment. She calls the cheese 'acceptable' and slides the better piece your way."
]
}, },
{ {
"id": "basil", "id": "basil",
@@ -189,7 +264,12 @@
"personality": "Mixes remedies for homesickness and hiccups.", "personality": "Mixes remedies for homesickness and hiccups.",
"snack": "fresh basil", "snack": "fresh basil",
"unlock_room": 11, "unlock_room": 11,
"accent": "#6f8f6a" "accent": "#6f8f6a",
"stories": [
"Basil snips a sprig of fresh basil and presses it into your paw before you have said a word. He says he makes something for homesickness, and something else for hiccups, just in case.",
"Basil asks, with great tact, whether last visit's remedy helped. He has been mixing a new one, he says, for the particular sort of tired that travel brings.",
"Basil has a little pouch ready with your name on it and a sprig of basil tucked in. He says the best remedy is often just being somewhere warm, and he is glad you are here."
]
}, },
{ {
"id": "juniper", "id": "juniper",
@@ -201,7 +281,12 @@
"personality": "Reads tea leaves, tarot cards, and the occasional receipt.", "personality": "Reads tea leaves, tarot cards, and the occasional receipt.",
"snack": "juniper berry", "snack": "juniper berry",
"unlock_room": 12, "unlock_room": 12,
"accent": "#6b5d7a" "accent": "#6b5d7a",
"stories": [
"Juniper peers into your tea leaves, then at a tarot card, then at a receipt she found somewhere. She declares you will stay longer than you planned, and offers a juniper berry for luck.",
"'The leaves say you'll return,' Juniper says, as though this were news to no one but you. She has been keeping a card from the deck for your next visit.",
"Juniper has your cup already brewed and a reading half-finished. She says the cards are fond of you, and the receipt she saved says the same thing, in its own way."
]
}, },
{ {
"id": "tofu", "id": "tofu",
@@ -213,7 +298,12 @@
"personality": "Checks in late, tips well, and hides in the scarf.", "personality": "Checks in late, tips well, and hides in the scarf.",
"snack": "plain rice", "snack": "plain rice",
"unlock_room": 13, "unlock_room": 13,
"accent": "#c9b79c" "accent": "#c9b79c",
"stories": [
"Tofu arrives after dark, mostly hidden in a thick scarf, and slides a generous tip across the desk without meeting anyone's eye. A small bowl of plain rice is waiting in the room.",
"Tofu checks in a little earlier this time, and the scarf sits lower on his face. He leaves the rice bowl spotless, which he seems pleased about.",
"Tofu does not hide in the scarf at all now, and tips the desk with both paws. He has started asking about the quiet hours, as if he plans to enjoy them."
]
}, },
{ {
"id": "squeak", "id": "squeak",
@@ -225,7 +315,12 @@
"personality": "Can make a pair of boots look brand new in four minutes.", "personality": "Can make a pair of boots look brand new in four minutes.",
"snack": "cheese rind", "snack": "cheese rind",
"unlock_room": 14, "unlock_room": 14,
"accent": "#8a6448" "accent": "#8a6448",
"stories": [
"Squeak pats the stool and gets to work, and in four minutes your boots are unrecognizable. He accepts a cheese rind with the air of a craftsman paid fairly.",
"Squeak has been waiting for your boots, he says, because he knew they would need him again. He makes them shine and keeps a cheese rind for later.",
"Squeak now greets your boots before he greets you, which he considers only polite. He says they have become his favorite pair, and polishes them like it."
]
}, },
{ {
"id": "nib", "id": "nib",
@@ -237,7 +332,12 @@
"personality": "Keeps the ledger, the keys, and everyone's secrets.", "personality": "Keeps the ledger, the keys, and everyone's secrets.",
"snack": "ink-black tea", "snack": "ink-black tea",
"unlock_room": 15, "unlock_room": 15,
"accent": "#5f6b5a" "accent": "#5f6b5a",
"stories": [
"Nib looks up from the ledger, notes your arrival with a single neat line, and says nothing at all about the key he has already set out. He pours ink-black tea and opens a fresh page.",
"Nib's ledger shows three tidy entries for you now, though he will not say what else he has written. He pours the tea without asking, which is his way of saying he remembered.",
"Nib keeps your key in the same place and your page in the same book. He says some things are worth recording, then closes the ledger with a satisfied little click."
]
}, },
{ {
"id": "pumpernickel", "id": "pumpernickel",
@@ -249,7 +349,12 @@
"personality": "Bakes the bread that wakes the hotel.", "personality": "Bakes the bread that wakes the hotel.",
"snack": "dark rye", "snack": "dark rye",
"unlock_room": 16, "unlock_room": 16,
"accent": "#5d4a3a" "accent": "#5d4a3a",
"stories": [
"Pumpernickel pulls a dark rye loaf from the oven at an hour when the rest of the hotel is still asleep. He says the bread will wake everyone shortly, and hands you the first slice.",
"'The loaf rose early tonight,' Pumpernickel says, which he insists is your doing. He has kept the crusty end for you.",
"The smell of dark rye reaches your room before you are fully awake, and Pumpernickel is already slicing. He says the hotel has come to expect you at this hour."
]
}, },
{ {
"id": "marzipan", "id": "marzipan",
@@ -261,7 +366,12 @@
"personality": "Has planned nine weddings and cried at all of them.", "personality": "Has planned nine weddings and cried at all of them.",
"snack": "almond candy", "snack": "almond candy",
"unlock_room": 17, "unlock_room": 17,
"accent": "#d4a7a0" "accent": "#d4a7a0",
"stories": [
"Marzipan dabs her eyes with a handkerchief and assures you she is perfectly fine; she has just seen the flowers. She offers an almond candy and says the lobby looks lovely today.",
"Marzipan has planned a small celebration for no particular reason, and cried at the centerpiece. She says you are welcome to join; there is always room for one more.",
"Marzipan keeps a candy and a handkerchief ready for you now. She says she has planned nine weddings and this visit might be her favorite, which makes her cry a little."
]
}, },
{ {
"id": "poppy", "id": "poppy",
@@ -273,7 +383,12 @@
"personality": "The fastest key-runner on the night shift.", "personality": "The fastest key-runner on the night shift.",
"snack": "poppy-seed cake", "snack": "poppy-seed cake",
"unlock_room": 18, "unlock_room": 18,
"accent": "#b65d5d" "accent": "#b65d5d",
"stories": [
"A blur of fawn fur skids to a stop in front of you, and Poppy presents your key before you have finished asking. She is already moving when she hands over a slice of poppy-seed cake.",
"Poppy delivers your key in record time again, then slows down just long enough to ask if you would like cake. She says she has been practicing.",
"Poppy has your key waiting at the door and a slice of cake on the counter. She swears the fastest run is the one that ends with someone saying hello."
]
}, },
{ {
"id": "clover", "id": "clover",
@@ -285,7 +400,12 @@
"personality": "Found a four-leaf clover in the lobby and never left.", "personality": "Found a four-leaf clover in the lobby and never left.",
"snack": "green apple", "snack": "green apple",
"unlock_room": 19, "unlock_room": 19,
"accent": "#6f9a5a" "accent": "#6f9a5a",
"stories": [
"Clover holds out a four-leaf clover he found right there in the lobby, then a green apple from the same spot, or so he claims. He says luck has a way of following him, and maybe you.",
"Clover is still in the lobby, and still lucky, and now he has saved you a green apple. He says the clover has been looking forward to your return.",
"Clover has added a fifth leaf, he says, though you are not sure how. He shares the apple and says the best luck is having somewhere to come back to."
]
}, },
{ {
"id": "marmalade", "id": "marmalade",
@@ -297,6 +417,11 @@
"personality": "Knows exactly how you like your toast.", "personality": "Knows exactly how you like your toast.",
"snack": "orange marmalade", "snack": "orange marmalade",
"unlock_room": 20, "unlock_room": 20,
"accent": "#d08a3e" "accent": "#d08a3e",
"stories": [
"Marmalade sets down toast done exactly to your liking, though you have never told him how you take it. He spreads orange marmalade with great concentration and says breakfast is served.",
"Marmalade has your toast ready at the precise moment you sit down. He says it is a knack, and refuses to share the secret of the marmalade.",
"Marmalade pours the tea before you ask and does the toast just so, as always. He says he has been listening, and that it has been a pleasure."
]
} }
] ]
+33 -2
View File
@@ -32,8 +32,8 @@ architectures/armeabi-v7a=false
architectures/arm64-v8a=true architectures/arm64-v8a=true
architectures/x86=false architectures/x86=false
architectures/x86_64=false architectures/x86_64=false
version/code=11 version/code=20
version/name="0.5.3" version/name="0.9.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
@@ -59,3 +59,34 @@ apk_expansion/enable=false
apk_expansion/SALT="" apk_expansion/SALT=""
apk_expansion/public_key="" apk_expansion/public_key=""
permissions/custom_permissions=PackedStringArray() permissions/custom_permissions=PackedStringArray()
permissions/vibrate=true
[preset.1]
name="Windows Desktop"
platform="Windows Desktop"
runnable=true
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter="data/*.json"
exclude_filter="art/guests/source/*"
export_path="build/Ratdoku.exe"
encryption_include_filters=""
encryption_exclude_filters=""
seed=0
encrypt_pck=false
encrypt_directory=false
script_export_mode=2
[preset.1.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=true
binary_format/architecture="x86_64"
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 387 KiB

After

Width:  |  Height:  |  Size: 454 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 79 KiB

+1 -1
View File
@@ -12,7 +12,7 @@ config_version=5
config/name="Ratdoku" config/name="Ratdoku"
run/main_scene="res://scenes/Main.tscn" run/main_scene="res://scenes/Main.tscn"
config/version="0.5.3-alpha" config/version="0.9.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
+12
View File
@@ -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")
+62
View File
@@ -0,0 +1,62 @@
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 head_path(id: String) -> String:
if id == "crumb":
return "res://art/crumb_head.png"
return "res://art/guests/heads/%s.png" % id
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))
+1
View File
@@ -0,0 +1 @@
uid://c5700f5m3iuxh
+41
View File
@@ -167,6 +167,46 @@ func set_level(level: Dictionary) -> void:
changed.emit() changed.emit()
func snapshot() -> Dictionary:
return {
"level_id": level_id,
"n": n,
"cells": cells.duplicate(true),
"auto_x": auto_x.duplicate(true),
"history": history.duplicate(true),
}
func restore_state(snapshot: Dictionary) -> bool:
if snapshot.is_empty() or str(snapshot.get("level_id", "")) != level_id:
return false
var saved_cells = snapshot.get("cells")
var saved_marks = snapshot.get("auto_x")
var saved_history = snapshot.get("history")
if (
typeof(saved_cells) != TYPE_ARRAY
or typeof(saved_marks) != TYPE_ARRAY
or typeof(saved_history) != TYPE_ARRAY
or saved_cells.size() != n
or saved_marks.size() != n
):
return false
cells = saved_cells.duplicate(true)
auto_x = saved_marks.duplicate(true)
history = saved_history.duplicate(true)
for key in fixed:
cells[key.x][key.y] = RAT
conflict_cells = Rules.conflicts(cells, regions)
pending_tap_cell = Vector2i(-1, -1)
press_cell = Vector2i(-1, -1)
hold_fired = false
last_placed = Vector2i(-1, -1)
pop_time = 0.0
queue_redraw()
changed.emit()
return true
func _draw() -> void: func _draw() -> void:
if regions.size() != n or n <= 0: if regions.size() != n or n <= 0:
return return
@@ -516,6 +556,7 @@ func _set_cell(cell: Vector2i, value: int) -> void:
if value == RAT: if value == RAT:
last_placed = cell last_placed = cell
pop_time = 0.0 if reduce_motion else 0.26 pop_time = 0.0 if reduce_motion else 0.26
UI.haptic(false)
_after_change() _after_change()
+40 -2
View File
@@ -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])
+29
View File
@@ -33,6 +33,30 @@ const DEFS := [
"id": "night", "name": "Night owl", "rooms": 0, "streak": 7, "id": "night", "name": "Night owl", "rooms": 0, "streak": 7,
"border": Palette.INK, "width": 4, "shadow": Palette.GOLD, "shadow_size": 8, "border": Palette.INK, "width": 4, "shadow": Palette.GOLD, "shadow_size": 8,
}, },
{
"id": "event_rain", "name": "Puddle boots", "rooms": 0, "streak": 0,
"border": Palette.MUTED, "width": 3, "shadow": Palette.ROSE, "shadow_size": 5,
},
{
"id": "event_tea", "name": "Tea set", "rooms": 0, "streak": 0,
"border": Palette.ORANGE, "width": 3, "shadow": Palette.GOLD, "shadow_size": 5,
},
{
"id": "event_harvest", "name": "Harvest", "rooms": 0, "streak": 0,
"border": Palette.GOLD, "width": 4, "shadow": Palette.ORANGE_DARK, "shadow_size": 6,
},
{
"id": "event_lantern", "name": "Lantern", "rooms": 0, "streak": 0,
"border": Palette.ORANGE_DARK, "width": 3, "shadow": Palette.GOLD, "shadow_size": 8,
},
{
"id": "event_book", "name": "Book club", "rooms": 0, "streak": 0,
"border": Palette.WALL, "width": 3, "shadow": Palette.PAPER, "shadow_size": 5,
},
{
"id": "event_spring", "name": "Fresh linen", "rooms": 0, "streak": 0,
"border": Palette.ROSE, "width": 3, "shadow": Palette.WHITE, "shadow_size": 6,
},
] ]
@@ -51,6 +75,9 @@ static func is_unlocked(id: String) -> bool:
var frame := by_id(id) var frame := by_id(id)
if frame.is_empty(): if frame.is_empty():
return false return false
var frame_id := str(frame.get("id", ""))
if frame_id.begins_with("event_"):
return SaveGame.claimed_event_frames().has(frame_id)
var rooms: int = SaveGame.rooms_completed() var rooms: int = SaveGame.rooms_completed()
var streak: int = SaveGame.best_streak() var streak: int = SaveGame.best_streak()
return rooms >= int(frame.get("rooms", 0)) and streak >= int(frame.get("streak", 0)) return rooms >= int(frame.get("rooms", 0)) and streak >= int(frame.get("streak", 0))
@@ -60,6 +87,8 @@ static func requirement_text(id: String) -> String:
var frame := by_id(id) var frame := by_id(id)
if frame.is_empty(): if frame.is_empty():
return "" return ""
if str(frame.get("id", "")).begins_with("event_"):
return "Event reward"
var rooms := int(frame.get("rooms", 0)) var rooms := int(frame.get("rooms", 0))
var streak := int(frame.get("streak", 0)) var streak := int(frame.get("streak", 0))
if rooms > 0 and streak > 0: if rooms > 0 and streak > 0:
+197
View File
@@ -0,0 +1,197 @@
class_name FreePlay
extends RefCounted
## Deterministic free-play variants of the verified levels.json boards.
##
## Only structure-preserving maps are used:
## * a dihedral symmetry of the square (rotation / mirror) applied to every
## cell, to `solution` (row -> column) and to the `clues` coordinates;
## * a one-to-one relabeling of region ids applied to every cell of `regions`.
##
## Both maps are automorphisms of the puzzle. They keep one rat per row, column
## and region, the "no two rats touching (even diagonally)" rule, and the exact
## number of solutions: a D4 symmetry is a bijection of cells that preserves
## adjacency and region membership, and a region relabeling preserves the
## equality relation between cells. Consequently every solution of the source
## (including any alternate one) maps to exactly one solution of the variant
## and back, so the verified uniqueness is preserved rather than re-guessed.
## The source solution is transported through the same map; no new solution is
## invented.
##
## Board.gd derives each region's guest portrait from the region id and the
## level id, so relabeling region ids relabels the associated guest ids too;
## the level dictionaries carry no separate guest-id array to transform.
##
## `id` is deliberately kept from the source so that applying the inverse map
## recovers the source entry byte-for-byte at the value level.
const LEVELS_PATH := "res://data/levels.json"
const N := 8
const SYMMETRY_COUNT := 8
## Loads and parses the verified level pack. Returns only dictionary entries.
static func all_source_levels() -> Array:
if not FileAccess.file_exists(LEVELS_PATH):
push_warning("FreePlay: no level file at %s" % LEVELS_PATH)
return []
var file := FileAccess.open(LEVELS_PATH, FileAccess.READ)
if file == null:
push_warning("FreePlay: could not open %s" % LEVELS_PATH)
return []
var parsed = JSON.parse_string(file.get_as_text())
file.close()
if typeof(parsed) != TYPE_ARRAY:
push_warning("FreePlay: %s is not a JSON array" % LEVELS_PATH)
return []
var levels: Array = []
for entry in parsed:
if typeof(entry) == TYPE_DICTIONARY:
levels.append(entry)
return levels
## Deterministic parameters shared by variant() and the QA inverse check.
## source_index picks a verified level; symmetry is a D4 index; region_map is a
## permutation of 0..N-1 applied to region ids, with its inverse provided too.
static func variant_params(seed: int, index: int) -> Dictionary:
var levels := all_source_levels()
var count := levels.size()
if count == 0:
return {}
var source_index := _mod(seed + index, count)
# An explicit seed keeps results identical across runs and platforms.
var rng := RandomNumberGenerator.new()
rng.seed = seed ^ (index * 2654435761)
var symmetry := rng.randi_range(0, SYMMETRY_COUNT - 1)
var region_map: Array = []
for i in N:
region_map.append(i)
for i in range(N - 1, 0, -1):
var j := rng.randi_range(0, i)
var tmp = region_map[i]
region_map[i] = region_map[j]
region_map[j] = tmp
var inverse_map: Array = []
inverse_map.resize(N)
for i in N:
inverse_map[int(region_map[i])] = i
return {
"source_index": source_index,
"symmetry": symmetry,
"region_map": region_map,
"inverse_map": inverse_map,
}
## Maps one cell coordinate through D4 symmetry `symmetry` on an n x n board:
## 0 identity; 1 rot90 cw; 2 rot180; 3 rot270 cw;
## 4 mirror left/right; 5 mirror top/bottom;
## 6 main-diagonal flip; 7 anti-diagonal flip.
static func transform_cell(r: int, c: int, symmetry: int, n: int = N) -> Vector2i:
var last := n - 1
match symmetry:
0:
return Vector2i(r, c)
1:
return Vector2i(c, last - r)
2:
return Vector2i(last - r, last - c)
3:
return Vector2i(last - c, r)
4:
return Vector2i(r, last - c)
5:
return Vector2i(last - r, c)
6:
return Vector2i(c, r)
7:
return Vector2i(last - c, last - r)
return Vector2i(r, c)
## The inverse of each D4 element. Four of them are self-inverse.
static func inverse_symmetry(symmetry: int) -> int:
match symmetry:
1:
return 3
3:
return 1
_:
return symmetry
## Returns a variant level in exactly the same shape as a levels.json entry:
## { clues, id, n, regions, solution }, with the same float value types.
static func variant(seed: int, index: int) -> Dictionary:
var params := variant_params(seed, index)
if params.is_empty():
return {}
var levels := all_source_levels()
var source: Dictionary = levels[int(params["source_index"])]
var n := int(source.get("n", N))
var symmetry := int(params["symmetry"])
var region_map: Array = params["region_map"]
var src_regions: Array = source.get("regions", [])
var src_solution: Array = source.get("solution", [])
var src_clues: Array = source.get("clues", [])
var regions: Array = []
for r in n:
var row: Array = []
for c in n:
row.append(0.0)
regions.append(row)
# Move every cell (and its relabeled region id) to its mirrored position.
for r in n:
for c in n:
var dest := transform_cell(r, c, symmetry, n)
var old_id := int(src_regions[r][c])
var new_id: int = old_id
if old_id >= 0 and old_id < region_map.size():
new_id = int(region_map[old_id])
regions[dest.x][dest.y] = float(new_id)
# solution[row] is the rat's column; a symmetry permutes rows, so write
# each transported rat into its new row.
var solution: Array = []
solution.resize(n)
for r in n:
var c := int(src_solution[r])
var dest := transform_cell(r, c, symmetry, n)
solution[dest.x] = float(dest.y)
# Clues are [row, column] coordinates of fixed rats.
var clues: Array = []
for clue in src_clues:
var r := int(clue[0])
var c := int(clue[1])
var dest := transform_cell(r, c, symmetry, n)
clues.append([float(dest.x), float(dest.y)])
return {
"clues": clues,
"id": str(source.get("id", "")),
"n": float(n),
"regions": regions,
"solution": solution,
}
static func _mod(value: int, modulus: int) -> int:
var result := value % modulus
if result < 0:
result += modulus
return result
+1
View File
@@ -0,0 +1 @@
uid://r1xo7agldkxm
Loaded 100 of 125 files, more files were not shown because too many files have changed in this diff. Show more