feat(ui): 360dp redesign with patterns, room legend, and in-level settings
This commit is contained in:
1 parent
46b5764144
commit
089f5d6171
12 files changed
+115
-263
No files matched your search
@@ -8,14 +8,14 @@ A cozy rat-hotel logic puzzle. Every guest gets a room, a floor, a corridor, and
|
||||
2. Open this folder in Godot (`project.godot`).
|
||||
3. Press **F5**.
|
||||
|
||||
The project uses a portrait 720×1280 canvas, scaled to a 540×960 desktop window.
|
||||
The project uses a portrait **360×640 dp canvas**, scaled to a 540×960 desktop window. On a tall phone it expands vertically instead of stretching the UI.
|
||||
|
||||
## How to play
|
||||
|
||||
- **Tap / left-click** a cell to mark it with an X. Tap an X or a guest to clear it.
|
||||
- **Press and hold** (mobile) or **right-click** (PC) to check a guest in. Hold or right-click a guest to check them out.
|
||||
- A gold ring fills while you hold; at the hold threshold (default 0.35 s) the guest is placed.
|
||||
- **Undo**, **Restart**, and **Hint** are at the bottom.
|
||||
- **Undo** and **Hint** are at the bottom. **Restart room** and **Back to lobby** live in the in-level settings sheet.
|
||||
- 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.
|
||||
- **No guessing is required.** Every room has exactly one solution.
|
||||
@@ -26,12 +26,18 @@ Every level assigns **eight distinct guests** to its eight coloured rooms. The g
|
||||
|
||||
The board uses circular **head tokens** from `art/guests/heads/`. Crumb remains the host and appears on Home and in the win overlay.
|
||||
|
||||
### Pattern mode and the room legend
|
||||
|
||||
- **Pattern mode is on by default.** Each room carries a distinct motif — paw, cheese, key, bed, bell, leaf, fish, star — drawn over the colour. Turn it off in Settings for flat colours.
|
||||
- A **room legend** above the board shows the eight guests for the level, one per region colour. Solved rooms get a gold ring.
|
||||
- The **gear in the top-right opens settings over the puzzle**, so patterns, timer, motion, and hold time can change without leaving the room. **Resume** is the primary action; restarting is deliberately secondary.
|
||||
|
||||
## Screens
|
||||
|
||||
- **Home** — Crumb, Check in, Guest Book, House Rules, Settings.
|
||||
- **Game** — board, timer, undo/restart/hint, win overlay.
|
||||
- **Home** — top hub with Crumb avatar, guest progress, and settings; Continue/Check in; Guest Book; House Rules.
|
||||
- **Game** — top bar, rule strip for the first three rooms, room legend, board, timer, undo/hint, in-level settings, win overlay.
|
||||
- **The Guest Book** — 25 guests: five residents unlocked from the start, the other 20 unlocked one per room. Locked cards show a very faint portrait under `???` and their room number.
|
||||
- **Settings** — region patterns, timer, reduce motion, hold-time slider, reset progress.
|
||||
- **Settings** — a bottom sheet over Home or the board: room patterns, timer, reduce motion, hold time, how to play, restart/back, reset progress.
|
||||
- **House Rules** — four illustrated rules, controls, tips, FAQ, and an interactive 5×5 practice board.
|
||||
|
||||
## Unlocks
|
||||
@@ -55,24 +61,28 @@ scenes/
|
||||
Game.tscn board screen + HUD + win overlay
|
||||
Board.tscn custom-drawn board
|
||||
GuestBook.tscn gallery
|
||||
Settings.tscn settings
|
||||
SettingsSheet.tscn bottom-sheet settings
|
||||
Rulebook.tscn house rules + interactive tutorial
|
||||
scripts/
|
||||
Main.gd navigation/back stack
|
||||
Home.gd home screen
|
||||
Game.gd level flow, timer, unlock flow, win overlay
|
||||
Board.gd drawing, input, undo, hints, per-room guests, settings
|
||||
Main.gd navigation/back stack + sheet routing
|
||||
Home.gd top hub + home screen
|
||||
Game.gd level flow, legend, rule strip, timer, win overlay
|
||||
Board.gd rounded tiles, motifs, input, undo, hints, per-room guests
|
||||
Rules.gd pure win/conflict rules
|
||||
Levels.gd JSON level loader
|
||||
Guests.gd guest manifest loader
|
||||
SaveGame.gd autoload: settings + progress
|
||||
GuestBook.gd gallery, locked cards, detail sheet
|
||||
Settings.gd settings toggles + reset
|
||||
SettingsSheet.gd shared settings sheet
|
||||
Rulebook.gd handbook content + 5×5 tutorial
|
||||
MiniDiagram.gd rule illustrations
|
||||
Palette.gd colours
|
||||
UI.gd button/label/panel helpers
|
||||
UI.gd 360dp tokens, fonts, buttons, icons
|
||||
Version.gd version/build label
|
||||
RatPortrait.gd fallback vector mascot
|
||||
assets/
|
||||
fonts/ Fredoka + Nunito (OFL)
|
||||
icons/ Lucide SVG icon set
|
||||
art/
|
||||
crumb.png full mascot
|
||||
crumb_head.png circular head token used on Home/win
|
||||
@@ -132,11 +142,12 @@ build/Ratdoku.apk
|
||||
It is a **debug-signed, arm64-v8a** APK:
|
||||
|
||||
- Package: `com.ratdoku.game`
|
||||
- Version: `0.2` (version code 1)
|
||||
- Version: `0.4.0` (version code 4)
|
||||
- Min SDK: 24 (Android 7.0)
|
||||
- Target SDK: 36
|
||||
- Size: about 41 MB
|
||||
- Portrait orientation
|
||||
- Build label: `v0.4.0-alpha · build 2026-12-02`
|
||||
|
||||
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:
|
||||
|
||||
@@ -175,12 +186,32 @@ If you want a Play Store build, switch `gradle_build/export_format` to AAB, use
|
||||
|
||||
`ui_test.gd` checks settings propagation, room-1 → Pepper unlock, gallery progress, and the interactive 5×5 tutorial. Both tests reset the save when they finish.
|
||||
|
||||
## Versioning and releases
|
||||
|
||||
The current development build is **v0.4.0-alpha** (“Lobby Redesign”) with the build label on Home and in Settings.
|
||||
|
||||
Gitea repository:
|
||||
|
||||
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku`
|
||||
|
||||
Alpha releases (all marked prerelease, each with a debug APK and source archive):
|
||||
|
||||
- **v0.1.0-alpha** — first playable 20-room prototype
|
||||
- **v0.2.0-alpha** — Guest Book, Settings, House Rules, 25 guests
|
||||
- **v0.3.0-alpha** — 30 rooms, unique guest per room, Android APK
|
||||
- `redesign-360` — branch with the 360dp redesign work
|
||||
|
||||
The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`).
|
||||
|
||||
## Current scope
|
||||
|
||||
- 30 verified 8×8 rooms (20 guest rooms + 10 bonus)
|
||||
- Unique guest per room per level
|
||||
- 360dp layout, Fredoka/Nunito typography, Lucide icons
|
||||
- Playful rounded tiles, 8 pattern motifs, room legend
|
||||
- In-level settings sheet with patterns/timer/motion/hold/restart/lobby
|
||||
- Interactive 5×5 tutorial
|
||||
- 25 guest portraits + Crumb
|
||||
- Settings, gallery, rulebook, unlock flow
|
||||
- Installable Android debug APK
|
||||
- No audio yet, no daily puzzle, no release keystore/AAB yet
|
||||
- No audio yet, no profile/daily streak yet, no release keystore/AAB yet
|
||||
Reference in new issue
Block a user