Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77ff5b48de | ||
|
|
82c5691d2e | ||
|
|
15e79ae38c | ||
|
|
d679a12e1d |
No files matched your search
@@ -2,6 +2,20 @@
|
||||
|
||||
All notable alpha milestones for Ratdoku.
|
||||
|
||||
## v0.4.3-alpha — Tap Twice
|
||||
|
||||
- Double-tap placement is now the default: tap marks X, two quick taps on the same cell check a guest in or out.
|
||||
- Existing version 1 saves migrate once to double-tap. Turning **Double-tap to place** off restores hold-to-place and keeps that choice.
|
||||
- Right-click still places guests in both modes.
|
||||
- Android debug APK rebuilt at version `0.4.3` (version code 7).
|
||||
|
||||
## v0.4.2-alpha — Swipe & Scroll
|
||||
|
||||
- Finger swipes now scroll the Guest Book even when they start on a card.
|
||||
- House Rules content passes swipes through labels and buttons, so the page scrolls anywhere outside the practice board.
|
||||
- Settings rows pass swipes through too, keeping every row scrollable while toggles, sliders, and buttons still tap normally.
|
||||
- Android debug APK rebuilt at version `0.4.2` (version code 6).
|
||||
|
||||
## v0.4.1-alpha — Front Desk Polish
|
||||
|
||||
- Guest Book cards only open on a short, stationary tap; dragging or flinging the list scrolls without opening a card.
|
||||
|
||||
@@ -13,9 +13,9 @@ The project uses a portrait **360×640 dp canvas**, scaled to a 540×960 desktop
|
||||
## 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.
|
||||
- Prefer double-tapping? Turn on **Double-tap to place** in Settings: tap still marks X, and two quick taps on the same cell check a guest in or out. Right-click keeps working in both modes.
|
||||
- A gold ring fills while you hold; at the hold threshold (default 0.35 s) the guest is placed.
|
||||
- **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.
|
||||
- In hold mode, a gold ring fills while you hold; at the hold threshold (default 0.35 s) the guest is placed.
|
||||
- **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.
|
||||
@@ -31,14 +31,14 @@ The board uses circular **head tokens** from `art/guests/heads/`. Crumb remains
|
||||
|
||||
- **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.
|
||||
- The **gear in the top-right opens settings over the puzzle**, so patterns, timer, motion, and placement mode can change without leaving the room. **Resume** is the primary action; restarting is deliberately secondary.
|
||||
|
||||
## Screens
|
||||
|
||||
- **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. Tapping a card opens a detail sheet; dragging scrolls the gallery without opening anything.
|
||||
- **Settings** — a bottom sheet over Home or the board: room patterns, timer, reduce motion, double-tap placement, hold time, how to play, restart/back, reset progress.
|
||||
- **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.
|
||||
- **House Rules** — four illustrated rules, controls, tips, FAQ, and an interactive 5×5 practice board.
|
||||
|
||||
## Unlocks
|
||||
@@ -143,12 +143,12 @@ build/Ratdoku.apk
|
||||
It is a **debug-signed, arm64-v8a** APK:
|
||||
|
||||
- Package: `com.ratdoku.game`
|
||||
- Version: `0.4.1` (version code 5)
|
||||
- Version: `0.4.3` (version code 7)
|
||||
- Min SDK: 24 (Android 7.0)
|
||||
- Target SDK: 36
|
||||
- Size: about 41 MB
|
||||
- Portrait orientation
|
||||
- Build label: `v0.4.1-alpha · build 2026-12-02`
|
||||
- Build label: `v0.4.3-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:
|
||||
|
||||
@@ -185,11 +185,11 @@ If you want a Play Store build, switch `gradle_build/export_format` to AAB, use
|
||||
--headless --path . --script res://tools/ui_test.gd
|
||||
```
|
||||
|
||||
`ui_test.gd` checks settings propagation, hold/double-tap placement, tap-vs-drag guards in the Guest Book, 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 version 1 migration, 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.
|
||||
|
||||
## Versioning and releases
|
||||
|
||||
The current development build is **v0.4.1-alpha** (“Front Desk Polish”) with the build label on Home and in Settings.
|
||||
The current development build is **v0.4.3-alpha** (“Tap Twice”) with the build label on Home and in Settings.
|
||||
|
||||
Gitea repository:
|
||||
|
||||
@@ -202,14 +202,16 @@ Alpha releases (all marked prerelease, each with a debug APK and source archive)
|
||||
- **v0.3.0-alpha** — 30 rooms, unique guest per room, Android APK
|
||||
- **v0.4.0-alpha** — 360dp redesign, pattern motifs, room legend, in-level settings
|
||||
- **v0.4.1-alpha** — Guest Book tap/scroll guards, close guard, double-tap placement
|
||||
- **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
|
||||
|
||||
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.4.1-alpha
|
||||
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.4.3-alpha
|
||||
|
||||
The v0.4.1-alpha APK is also at:
|
||||
The v0.4.3-alpha APK is also at:
|
||||
|
||||
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.4.1-alpha/Ratdoku-v0.4.1-alpha.apk`
|
||||
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.4.3-alpha/Ratdoku-v0.4.3-alpha.apk`
|
||||
|
||||
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.4.1-alpha`.
|
||||
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.4.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`).
|
||||
|
||||
@@ -219,7 +221,7 @@ The version is set in three places: `project.godot` (`config/version`), `scripts
|
||||
- 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
|
||||
- In-level settings sheet with patterns/timer/motion/placement mode/restart/lobby
|
||||
- Interactive 5×5 tutorial
|
||||
- 25 guest portraits + Crumb
|
||||
- Settings, gallery, rulebook, unlock flow
|
||||
|
||||
+2
-2
@@ -32,8 +32,8 @@ architectures/armeabi-v7a=false
|
||||
architectures/arm64-v8a=true
|
||||
architectures/x86=false
|
||||
architectures/x86_64=false
|
||||
version/code=5
|
||||
version/name="0.4.1"
|
||||
version/code=7
|
||||
version/name="0.4.3"
|
||||
package/unique_name="com.ratdoku.game"
|
||||
package/name="Ratdoku"
|
||||
package/signed=true
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ config_version=5
|
||||
|
||||
config/name="Ratdoku"
|
||||
run/main_scene="res://scenes/Main.tscn"
|
||||
config/version="0.4.1-alpha"
|
||||
config/version="0.4.3-alpha"
|
||||
config/features=PackedStringArray("4.7", "GL Compatibility")
|
||||
config/icon="res://icon.png"
|
||||
|
||||
|
||||
@@ -134,6 +134,10 @@ func refresh() -> void:
|
||||
for guest in guests:
|
||||
grid.add_child(_make_card(guest))
|
||||
|
||||
# Let a finger drag reach the ScrollContainer even when it starts on a
|
||||
# card; the card still gets its own press/release for tap detection.
|
||||
UI.pass_scroll_input(grid)
|
||||
|
||||
|
||||
func _make_card(guest: Dictionary) -> PanelContainer:
|
||||
var id := str(guest["id"])
|
||||
@@ -241,9 +245,9 @@ func _on_card_input(event: InputEvent, guest: Dictionary, locked: bool) -> void:
|
||||
if scrolled:
|
||||
_suppress_until = now + DRAG_SUPPRESS_MS
|
||||
|
||||
# Consume the release either way: a scroll must not fall through to a
|
||||
# card, and a tap must not reach the detail sheet that is about to open.
|
||||
accept_event()
|
||||
# Do not consume the event: the ScrollContainer needs the release to end
|
||||
# its drag. A real tap is still safe because the detail sheet guards
|
||||
# Close for 250ms after opening.
|
||||
if not is_tap:
|
||||
return
|
||||
|
||||
|
||||
@@ -101,6 +101,11 @@ func _ready() -> void:
|
||||
if not tutorial.is_empty():
|
||||
tutorial_board.set_level(tutorial)
|
||||
|
||||
# Everything in the rules list passes drags to the ScrollContainer, so
|
||||
# a swipe works over labels and buttons. The practice board keeps its
|
||||
# own input.
|
||||
UI.pass_scroll_input(content, [tutorial_board])
|
||||
|
||||
|
||||
func _body(text: String) -> Label:
|
||||
var label := UI.label(text, 12, Palette.MUTED)
|
||||
|
||||
+12
-2
@@ -13,7 +13,7 @@ const DEFAULTS := {
|
||||
"show_timer": true,
|
||||
"reduce_motion": false,
|
||||
"hold_seconds": 0.35,
|
||||
"double_tap_place": false,
|
||||
"double_tap_place": true,
|
||||
}
|
||||
|
||||
var data := {}
|
||||
@@ -25,7 +25,7 @@ func _ready() -> void:
|
||||
|
||||
func _default_data() -> Dictionary:
|
||||
return {
|
||||
"version": 1,
|
||||
"version": 2,
|
||||
"completed_rooms": [],
|
||||
"unlocked_guests": [],
|
||||
"settings": DEFAULTS.duplicate(true),
|
||||
@@ -35,6 +35,7 @@ func _default_data() -> Dictionary:
|
||||
|
||||
func load_game() -> void:
|
||||
data = _default_data()
|
||||
var stored_version := 2
|
||||
|
||||
if FileAccess.file_exists(PATH):
|
||||
var file := FileAccess.open(PATH, FileAccess.READ)
|
||||
@@ -42,6 +43,7 @@ func load_game() -> void:
|
||||
var parsed = JSON.parse_string(file.get_as_text())
|
||||
file.close()
|
||||
if typeof(parsed) == TYPE_DICTIONARY:
|
||||
stored_version = int(parsed.get("version", 1))
|
||||
for key in parsed:
|
||||
data[key] = parsed[key]
|
||||
|
||||
@@ -51,6 +53,14 @@ func load_game() -> void:
|
||||
if not data["settings"].has(key):
|
||||
data["settings"][key] = DEFAULTS[key]
|
||||
|
||||
# Version 2 makes double-tap the default. Older saves were written while
|
||||
# hold was the default, so switch them once; the toggle still persists
|
||||
# after that.
|
||||
if stored_version < 2:
|
||||
data["settings"]["double_tap_place"] = true
|
||||
data["version"] = 2
|
||||
save_game()
|
||||
|
||||
if typeof(data.get("completed_rooms")) != TYPE_ARRAY:
|
||||
data["completed_rooms"] = []
|
||||
if typeof(data.get("unlocked_guests")) != TYPE_ARRAY:
|
||||
|
||||
@@ -100,6 +100,10 @@ func _ready() -> void:
|
||||
reset_status = UI.label("", 10, Palette.MUTED)
|
||||
list.add_child(reset_status)
|
||||
|
||||
# Let swipes reach the sheet's ScrollContainer even when they start on a
|
||||
# label, toggle, or button.
|
||||
UI.pass_scroll_input(list)
|
||||
|
||||
game_actions = HBoxContainer.new()
|
||||
game_actions.add_theme_constant_override("separation", 6)
|
||||
column.add_child(game_actions)
|
||||
@@ -283,7 +287,7 @@ func _update_hold_availability() -> void:
|
||||
return
|
||||
var enabled := not bool(SaveGame.get_setting("double_tap_place"))
|
||||
hold_slider.editable = enabled
|
||||
hold_slider.mouse_filter = Control.MOUSE_FILTER_STOP if enabled else Control.MOUSE_FILTER_IGNORE
|
||||
hold_slider.mouse_filter = Control.MOUSE_FILTER_PASS if enabled else Control.MOUSE_FILTER_IGNORE
|
||||
hold_panel.modulate = Color(1, 1, 1, 1.0 if enabled else 0.45)
|
||||
|
||||
|
||||
|
||||
@@ -142,6 +142,19 @@ static func safe_bottom() -> int:
|
||||
return 24 if OS.has_feature("mobile") else 14
|
||||
|
||||
|
||||
## Godot's ScrollContainer only sees a touch drag when the controls under the
|
||||
## finger let the event through. PASS keeps buttons clickable while allowing
|
||||
## the parent ScrollContainer to handle the same gesture. `skip` protects
|
||||
## controls that must own their input, such as the tutorial Board.
|
||||
static func pass_scroll_input(root: Node, skip: Array = []) -> void:
|
||||
if root is Control and not skip.has(root):
|
||||
root.mouse_filter = Control.MOUSE_FILTER_PASS
|
||||
for child in root.get_children():
|
||||
if skip.has(child):
|
||||
continue
|
||||
pass_scroll_input(child, skip)
|
||||
|
||||
|
||||
## Short control hint that follows the saved placement mode.
|
||||
static func place_hint() -> String:
|
||||
if bool(SaveGame.get_setting("double_tap_place")):
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
class_name Version
|
||||
extends RefCounted
|
||||
|
||||
const NUMBER := "0.4.1-alpha"
|
||||
const CODENAME := "Front Desk Polish"
|
||||
const NUMBER := "0.4.3-alpha"
|
||||
const CODENAME := "Tap Twice"
|
||||
const BUILD_DATE := "2026-12-02"
|
||||
const BUILD_LABEL := "v0.4.1-alpha · build 2026-12-02"
|
||||
const BUILD_LABEL := "v0.4.3-alpha · build 2026-12-02"
|
||||
@@ -93,6 +93,13 @@ func _run() -> void:
|
||||
print("FAIL mapping: expected (3,4), got %s" % str(mapped))
|
||||
|
||||
# Tap marks X, right-click checks in, and hold checks in without a tap.
|
||||
# This section exercises hold mode explicitly; double-tap has its own
|
||||
# checks in ui_test.gd.
|
||||
var save = root.get_node_or_null("SaveGame")
|
||||
var previous_mode := true
|
||||
if save != null:
|
||||
previous_mode = bool(save.get_setting("double_tap_place"))
|
||||
save.set_setting("double_tap_place", false)
|
||||
board.set_level(first)
|
||||
board._update_layout()
|
||||
var tap_cell := _find_empty_cell(board)
|
||||
@@ -122,6 +129,9 @@ func _run() -> void:
|
||||
all_ok = false
|
||||
print("FAIL hold release: guest was removed")
|
||||
|
||||
if save != null:
|
||||
save.set_setting("double_tap_place", previous_mode)
|
||||
|
||||
print("SMOKE TEST: %s" % ("PASS" if all_ok else "FAIL"))
|
||||
quit(0 if all_ok else 1)
|
||||
|
||||
|
||||
+42
-2
@@ -33,6 +33,7 @@ func _run() -> void:
|
||||
quit(1)
|
||||
return
|
||||
|
||||
_test_save_defaults(save)
|
||||
save.reset_progress()
|
||||
|
||||
main.game.start_level(0)
|
||||
@@ -55,6 +56,14 @@ func _run() -> void:
|
||||
|
||||
_test_placement_modes(save, main.game.board)
|
||||
|
||||
main.open_settings("home")
|
||||
await process_frame
|
||||
_check(
|
||||
main.settings_sheet.toggles["double_tap_place"].mouse_filter == Control.MOUSE_FILTER_PASS,
|
||||
"settings rows should pass swipes to the ScrollContainer"
|
||||
)
|
||||
main.close_settings()
|
||||
|
||||
var unlocked: String = save.complete_room("room-01", 1)
|
||||
_check(unlocked == "pepper", "room 1 should unlock Pepper")
|
||||
_check(save.is_guest_unlocked("pepper"), "Pepper should be unlocked")
|
||||
@@ -67,12 +76,21 @@ func _run() -> void:
|
||||
if main.guest_book != null and main.guest_book.progress_label != null:
|
||||
_check(main.guest_book.progress_label.text.find("6/25") >= 0, "Guest Book progress should be 6/25")
|
||||
_test_guest_book_input(main.guest_book)
|
||||
_check(main.guest_book.grid.mouse_filter == Control.MOUSE_FILTER_PASS, "guest grid should pass swipes")
|
||||
var first_card = main.guest_book.grid.get_child(0)
|
||||
_check(first_card.mouse_filter == Control.MOUSE_FILTER_PASS, "guest cards should pass swipes")
|
||||
|
||||
main.show_screen("rules")
|
||||
await process_frame
|
||||
var tutorial_board = main.rulebook.tutorial_board
|
||||
_check(tutorial_board != null, "Tutorial board missing")
|
||||
if tutorial_board != null:
|
||||
var rule_scrolls = main.rulebook.find_children("*", "ScrollContainer", true, false)
|
||||
_check(rule_scrolls.size() > 0, "Rules ScrollContainer missing")
|
||||
if rule_scrolls.size() > 0:
|
||||
var rules_content = rule_scrolls[0].get_child(0)
|
||||
_check(rules_content.mouse_filter == Control.MOUSE_FILTER_PASS, "rules content should pass swipes")
|
||||
_check(tutorial_board.mouse_filter == Control.MOUSE_FILTER_STOP, "tutorial board should keep its own input")
|
||||
for i in range(8):
|
||||
tutorial_board.hint()
|
||||
await process_frame
|
||||
@@ -83,12 +101,34 @@ func _run() -> void:
|
||||
save.set_setting("show_timer", true)
|
||||
save.set_setting("reduce_motion", false)
|
||||
save.set_setting("hold_seconds", 0.35)
|
||||
save.set_setting("double_tap_place", false)
|
||||
save.set_setting("double_tap_place", true)
|
||||
|
||||
print("UI TEST: ", "PASS" if failures == 0 else "FAIL (%d)" % failures)
|
||||
quit(0 if failures == 0 else 1)
|
||||
|
||||
|
||||
func _test_save_defaults(save) -> void:
|
||||
# A fresh save starts in double-tap mode at version 2.
|
||||
var abs_path := ProjectSettings.globalize_path(save.PATH)
|
||||
if FileAccess.file_exists(save.PATH):
|
||||
DirAccess.remove_absolute(abs_path)
|
||||
save.load_game()
|
||||
_check(int(save.data.get("version", 0)) == 2, "fresh saves should be version 2")
|
||||
_check(bool(save.get_setting("double_tap_place")), "fresh saves should default to double-tap")
|
||||
|
||||
# A version 1 save with hold selected migrates to double-tap once.
|
||||
var old: Dictionary = save._default_data()
|
||||
old["version"] = 1
|
||||
old["settings"]["double_tap_place"] = false
|
||||
var file := FileAccess.open(save.PATH, FileAccess.WRITE)
|
||||
file.store_string(JSON.stringify(old, "\t"))
|
||||
file.close()
|
||||
|
||||
save.load_game()
|
||||
_check(int(save.data.get("version", 0)) == 2, "version 1 saves should migrate to version 2")
|
||||
_check(bool(save.get_setting("double_tap_place")), "version 1 saves should migrate to double-tap")
|
||||
|
||||
|
||||
func _find_empty(board: Board) -> Vector2i:
|
||||
for r in board.n:
|
||||
for c in board.n:
|
||||
@@ -165,7 +205,7 @@ func _test_placement_modes(save, board: Board) -> void:
|
||||
save.set_setting("double_tap_place", true)
|
||||
save.load_game()
|
||||
_check(bool(save.get_setting("double_tap_place")), "double_tap_place should persist")
|
||||
save.set_setting("double_tap_place", false)
|
||||
save.set_setting("double_tap_place", true)
|
||||
board.restart()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user