Compare commits

..
Author SHA1 Message Date
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
14 changed files with 5343 additions and 32 deletions

No files matched your search

+16
View File
@@ -2,6 +2,22 @@
All notable alpha milestones for Ratdoku. All notable alpha milestones for Ratdoku.
## 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 ## v0.6.2-alpha — Clean Cutouts
- Regenerated all 25 guest portraits with the saved Krea2 Uncensored workflow on a neutral white background. - Regenerated all 25 guest portraits with the saved Krea2 Uncensored workflow on a neutral white background.
+11 -9
View File
@@ -18,7 +18,7 @@ The project uses a portrait **360×640 dp canvas**, scaled to a 540×960 desktop
- 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. - On Android, the system back button acts like the in-app back arrow: it closes overlays first, then navigates back. On Home it asks before quitting.
- **Undo** and **Hint** are at the bottom. **Restart room** and **Back to lobby** live in the in-level settings sheet. - **Undo** and **Hint** are at the bottom. **Restart room** and **Back to lobby** live in the in-level settings sheet.
- The **Daily room** changes each day and tracks a streak. Replaying the same day never counts twice. Open **Streak** for the weekly calendar and next goal. - The **Daily room** changes each day and tracks a streak. All 30 rooms rotate once before repeating. Replaying the same day never counts twice. Open **Streak** for the weekly calendar, next-frame goal, and reward milestones.
- Tap **Crumb** in the top-left to open your Profile, where you can choose an avatar and a frame. Choices apply on Confirm. - Tap **Crumb** in the top-left to open your Profile, where you can choose an avatar and a frame. Choices apply on Confirm.
- A **gold ring** around a guest means they are already checked in and cannot be moved. - A **gold ring** around a guest means they are already checked in and cannot be moved.
- Win when every room, floor, and corridor has exactly one rat and no two rats touch — even diagonally. - Win when every room, floor, and corridor has exactly one rat and no two rats touch — even diagonally.
@@ -43,7 +43,7 @@ The board uses circular **head tokens** from `art/guests/heads/`. Crumb remains
- **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, how to play, restart/back, reset progress. Destructive actions use a themed in-app confirmation card.
- **Profile** — framed avatar preview, rooms completed, current and best daily streaks, and tabbed Avatar / Frame pickers with Confirm / Cancel. Guest portraits unlock with their Guest Book entry. - **Profile** — framed avatar preview, rooms completed, current and best daily streaks, and tabbed Avatar / Frame pickers with Confirm / Cancel. Guest portraits unlock with their Guest Book entry.
- **Daily Streak** — big current streak, best-streak pill, weekly calendar, next-frame goal, and a visual day-7 gift marker. - **Daily Streak** — big current streak, best-streak pill, weekly calendar, next-frame goal, day-7 gift marker, and streak reward milestones.
- **House Rules** — four illustrated rules, controls, tips, FAQ, and an interactive 5×5 practice board. - **House Rules** — four illustrated rules, controls, tips, FAQ, and an interactive 5×5 practice board.
## Unlocks ## Unlocks
@@ -148,12 +148,12 @@ build/Ratdoku.apk
It is a **debug-signed, arm64-v8a** APK: It is a **debug-signed, arm64-v8a** APK:
- Package: `com.ratdoku.game` - Package: `com.ratdoku.game`
- Version: `0.6.2` (version code 14) - Version: `0.6.4` (version code 16)
- Min SDK: 24 (Android 7.0) - Min SDK: 24 (Android 7.0)
- Target SDK: 36 - Target SDK: 36
- Size: about 41 MB - Size: about 41 MB
- Portrait orientation - Portrait orientation
- Build label: `v0.6.2-alpha · build 2026-12-03` - Build label: `v0.6.4-alpha · build 2026-12-03`
To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging: To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging:
@@ -202,7 +202,7 @@ Run the whole QA suite (class scan, every test script, log-error scan, optional
## Versioning and releases ## Versioning and releases
The current development build is **v0.6.2-alpha** (“Clean Cutouts”) with the build label on Home and in Settings. The current development build is **v0.6.4-alpha** (“Polished Edges”) with the build label on Home and in Settings.
Gitea repository: Gitea repository:
@@ -224,14 +224,16 @@ Alpha releases (all marked prerelease, each with a debug APK and source archive)
- **v0.6.0-alpha** — selectable guest avatars with tabbed picker and a Daily Streak screen with weekly goal - **v0.6.0-alpha** — selectable guest avatars with tabbed picker and a Daily Streak screen with weekly goal
- **v0.6.1-alpha** — Android back button navigates the app instead of closing it - **v0.6.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.2-alpha** — transparent cutout portraits, alternate variants, and full character sheets
- **v0.6.3-alpha** — full 30-room daily rotation, visible profile actions, and reset-safe avatar/frame selection
- **v0.6.4-alpha** — streak reward milestones and cleaned Krea2 workflow prompts
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.6.2-alpha https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.6.4-alpha
The v0.6.2-alpha APK is also at: The v0.6.4-alpha APK is also at:
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.6.2-alpha/Ratdoku-v0.6.2-alpha.apk` `https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.6.4-alpha/Ratdoku-v0.6.4-alpha.apk`
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.6.2-alpha`. `redesign-360` is the branch with the current 360dp work; it is tagged `v0.6.4-alpha`.
The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`). The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`).
+2 -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=14 version/code=16
version/name="0.6.2" version/name="0.6.4"
package/unique_name="com.ratdoku.game" package/unique_name="com.ratdoku.game"
package/name="Ratdoku" package/name="Ratdoku"
package/signed=true package/signed=true
+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.6.2-alpha" config/version="0.6.4-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
+16 -2
View File
@@ -53,9 +53,23 @@ static func goal_text(streak: int) -> String:
return "%d more day%s until the Regular frame" % [3 - streak, "" if 3 - streak == 1 else "s"] return "%d more day%s until the Regular frame" % [3 - streak, "" if 3 - streak == 1 else "s"]
## Stable per-date room choice. With 30 rooms the pool repeats monthly. ## Stable per-date room choice. A fixed shuffled order guarantees every
## room appears once before the daily pool repeats.
static func level_index(level_count: int, key: String = "") -> int: static func level_index(level_count: int, key: String = "") -> int:
if level_count <= 0: if level_count <= 0:
return -1 return -1
var date_key := key if key != "" else today_key() var date_key := key if key != "" else today_key()
return absi(("ratdoku-daily-" + date_key).hash()) % level_count var index := absi(day_number(date_key)) % level_count
# Deterministic across devices and sessions: same seed => same order.
var rng := RandomNumberGenerator.new()
rng.seed = 0x52415444
var order: Array = []
for i in range(level_count):
order.append(i)
for i in range(level_count - 1, 0, -1):
var j := rng.randi_range(0, i)
var swap = order[i]
order[i] = order[j]
order[j] = swap
return int(order[index])
+12 -1
View File
@@ -11,6 +11,7 @@ signal streak_pressed
var progress_pill: Button var progress_pill: Button
var primary: Button var primary: Button
var hint_label: Label var hint_label: Label
var mascot_caption: Label
var daily_button: Button var daily_button: Button
var streak_button: Button var streak_button: Button
var avatar_holder: CenterContainer var avatar_holder: CenterContainer
@@ -91,7 +92,8 @@ func _ready() -> void:
card.add_child(mascot) card.add_child(mascot)
column.add_child(card) column.add_child(card)
column.add_child(UI.label("Crumb, innkeeper", 12, Palette.MUTED)) mascot_caption = UI.label("Crumb, innkeeper", 12, Palette.MUTED)
column.add_child(mascot_caption)
hint_label = UI.label(UI.place_hint(), 11, Palette.MUTED) hint_label = UI.label(UI.place_hint(), 11, Palette.MUTED)
column.add_child(hint_label) column.add_child(hint_label)
@@ -133,6 +135,15 @@ func _ready() -> void:
func refresh() -> void: func refresh() -> void:
hint_label.text = UI.place_hint() hint_label.text = UI.place_hint()
var avatar_id := SaveGame.selected_avatar()
if avatar_id == "crumb":
mascot_caption.text = "Crumb, innkeeper"
else:
var guest := Guests.by_id(avatar_id)
mascot_caption.text = "%s · %s" % [
str(guest.get("name", avatar_id)),
str(guest.get("role", "Guest"))
]
daily_button.text = _daily_text() daily_button.text = _daily_text()
_refresh_avatar() _refresh_avatar()
var guests := Guests.all() var guests := Guests.all()
+13 -12
View File
@@ -51,6 +51,19 @@ func _ready() -> void:
scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED
column.add_child(scroll) column.add_child(scroll)
# Confirm/Cancel stay visible instead of being hidden below the scroll.
var actions := HBoxContainer.new()
actions.add_theme_constant_override("separation", 8)
column.add_child(actions)
var cancel := UI.button("Cancel", false, 46)
cancel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
cancel.pressed.connect(_on_cancel)
actions.add_child(cancel)
var confirm := UI.button("Confirm", true, 46)
confirm.size_flags_horizontal = Control.SIZE_EXPAND_FILL
confirm.pressed.connect(_on_confirm)
actions.add_child(confirm)
var content := VBoxContainer.new() var content := VBoxContainer.new()
content.size_flags_horizontal = Control.SIZE_EXPAND_FILL content.size_flags_horizontal = Control.SIZE_EXPAND_FILL
content.add_theme_constant_override("separation", 8) content.add_theme_constant_override("separation", 8)
@@ -99,18 +112,6 @@ func _ready() -> void:
status_label.custom_minimum_size = Vector2(0, 22) status_label.custom_minimum_size = Vector2(0, 22)
content.add_child(status_label) content.add_child(status_label)
var actions := HBoxContainer.new()
actions.add_theme_constant_override("separation", 8)
content.add_child(actions)
var cancel := UI.button("Cancel", false, 46)
cancel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
cancel.pressed.connect(_on_cancel)
actions.add_child(cancel)
var confirm := UI.button("Confirm", true, 46)
confirm.size_flags_horizontal = Control.SIZE_EXPAND_FILL
confirm.pressed.connect(_on_confirm)
actions.add_child(confirm)
UI.pass_scroll_input(content) UI.pass_scroll_input(content)
SaveGame.progress_changed.connect(refresh) SaveGame.progress_changed.connect(refresh)
refresh() refresh()
+13
View File
@@ -151,6 +151,19 @@ func reset_progress() -> void:
data["completed_rooms"] = [] data["completed_rooms"] = []
data["unlocked_guests"] = [] data["unlocked_guests"] = []
data["last_room"] = 0 data["last_room"] = 0
# Room-based unlocks can disappear after a reset; never leave a locked
# frame or guest avatar equipped.
var frame := Frames.by_id(selected_frame())
if (
frame.is_empty()
or rooms_completed() < int(frame.get("rooms", 0))
or best_streak() < int(frame.get("streak", 0))
):
data["profile_frame"] = "plain"
if not Avatars.is_unlocked(selected_avatar()):
data["avatar_id"] = "crumb"
save_game() save_game()
progress_changed.emit() progress_changed.emit()
+27
View File
@@ -6,6 +6,8 @@ var current_label: Label
var best_label: Label var best_label: Label
var goal_label: Label var goal_label: Label
var week_row: HBoxContainer var week_row: HBoxContainer
var regular_milestone: Label
var night_milestone: Label
func _ready() -> void: func _ready() -> void:
@@ -81,16 +83,41 @@ func _ready() -> void:
gift_text.custom_minimum_size = Vector2(110, 0) gift_text.custom_minimum_size = Vector2(110, 0)
gift_row.add_child(gift_text) gift_row.add_child(gift_text)
content.add_child(UI.heading("Streak rewards", 18))
var milestones := HBoxContainer.new()
milestones.add_theme_constant_override("separation", 6)
content.add_child(milestones)
regular_milestone = _milestone_card(milestones, "3-day · Regular")
night_milestone = _milestone_card(milestones, "7-day · Night Owl")
UI.pass_scroll_input(content) UI.pass_scroll_input(content)
SaveGame.progress_changed.connect(refresh) SaveGame.progress_changed.connect(refresh)
refresh() refresh()
func _milestone_card(parent: HBoxContainer, title: String) -> Label:
var panel := UI.panel(Palette.PAPER, 12, 8)
panel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
var box := VBoxContainer.new()
box.add_theme_constant_override("separation", 2)
panel.add_child(box)
box.add_child(UI.label(title, 10, Palette.MUTED))
var value := UI.label("", 13)
box.add_child(value)
parent.add_child(panel)
return value
func refresh() -> void: func refresh() -> void:
var streak := SaveGame.daily_streak() var streak := SaveGame.daily_streak()
current_label.text = str(streak) current_label.text = str(streak)
best_label.text = "Best streak: %d" % SaveGame.best_streak() best_label.text = "Best streak: %d" % SaveGame.best_streak()
goal_label.text = Daily.goal_text(streak) goal_label.text = Daily.goal_text(streak)
var best := SaveGame.best_streak()
regular_milestone.text = "Unlocked" if best >= 3 else "%d to go" % (3 - best)
night_milestone.text = "Unlocked" if best >= 7 else "%d to go" % (7 - best)
regular_milestone.add_theme_color_override("font_color", Palette.GOLD if best >= 3 else Palette.INK)
night_milestone.add_theme_color_override("font_color", Palette.GOLD if best >= 7 else Palette.INK)
_build_week() _build_week()
+3 -3
View File
@@ -1,7 +1,7 @@
class_name Version class_name Version
extends RefCounted extends RefCounted
const NUMBER := "0.6.2-alpha" const NUMBER := "0.6.4-alpha"
const CODENAME := "Clean Cutouts" const CODENAME := "Polished Edges"
const BUILD_DATE := "2026-12-03" const BUILD_DATE := "2026-12-03"
const BUILD_LABEL := "v0.6.2-alpha · build 2026-12-03" const BUILD_LABEL := "v0.6.4-alpha · build 2026-12-03"
+1
View File
@@ -317,6 +317,7 @@ func _test_daily(save) -> void:
all_valid = false all_valid = false
distinct[i] = true distinct[i] = true
_check(all_valid, "30 consecutive dates should all produce valid daily indices") _check(all_valid, "30 consecutive dates should all produce valid daily indices")
_check(distinct.size() == 30, "30 consecutive dates should visit all 30 rooms")
_note("distinct daily levels across 30 consecutive days: %d" % distinct.size()) _note("distinct daily levels across 30 consecutive days: %d" % distinct.size())
_reset_to_clean(save) _reset_to_clean(save)
+24
View File
@@ -47,12 +47,31 @@ func _run() -> void:
await _test_campaign(main, save) await _test_campaign(main, save)
await _test_guest_book(main) await _test_guest_book(main)
await _test_back(main) await _test_back(main)
await _test_reset_fallback(main, save)
_restore_defaults(save) _restore_defaults(save)
print("QA UI: ", "PASS" if failures == 0 else "FAIL (%d)" % failures) print("QA UI: ", "PASS" if failures == 0 else "FAIL (%d)" % failures)
quit(0 if failures == 0 else 1) quit(0 if failures == 0 else 1)
func _test_reset_fallback(main, save) -> void:
main.show_screen("home", false)
await process_frame
save.data["avatar_id"] = "pepper"
save.data["profile_frame"] = "paper"
save.data["completed_rooms"] = ["a", "b", "c", "d", "e"]
save.save_game()
save.progress_changed.emit()
await process_frame
_check(main.home.mascot_caption.text.find("Pepper") >= 0, "Home caption should follow the chosen avatar")
save.reset_progress()
await process_frame
_check(save.selected_frame() == "plain", "reset should clear a room-locked frame")
_check(save.selected_avatar() == "crumb", "reset should clear a locked guest avatar")
_check(main.home.mascot_caption.text.find("Crumb") >= 0, "Home caption should return to Crumb")
func _test_screen_cycle(main) -> void: func _test_screen_cycle(main) -> void:
var expected: Array[String] = ["home", "game", "guest_book", "rules", "profile", "streak"] var expected: Array[String] = ["home", "game", "guest_book", "rules", "profile", "streak"]
_check(main.screens.size() == expected.size(), "Main should expose all six screens") _check(main.screens.size() == expected.size(), "Main should expose all six screens")
@@ -302,6 +321,11 @@ func _test_profile(main, save) -> void:
await process_frame await process_frame
_check(main.current == "streak", "Profile should open the streak screen") _check(main.current == "streak", "Profile should open the streak screen")
_check(main.streak.week_row.get_child_count() == 7, "streak screen should show a seven-day week") _check(main.streak.week_row.get_child_count() == 7, "streak screen should show a seven-day week")
var best: int = int(save.best_streak())
var regular_text := "Unlocked" if best >= 3 else "%d to go" % (3 - best)
var night_text := "Unlocked" if best >= 7 else "%d to go" % (7 - best)
_check(main.streak.regular_milestone.text == regular_text, "regular milestone should match best streak")
_check(main.streak.night_milestone.text == night_text, "night owl milestone should match best streak")
_check(main.streak.current_label.text == str(save.daily_streak()), "streak number should match the save") _check(main.streak.current_label.text == str(save.daily_streak()), "streak number should match the save")
main.show_screen("profile", false) main.show_screen("profile", false)
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff