Compare commits

...
Author SHA1 Message Date
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
11 changed files with 98 additions and 29 deletions

No files matched your search

+9
View File
@@ -2,6 +2,15 @@
All notable alpha milestones for Ratdoku. All notable alpha milestones for Ratdoku.
## v0.6.3-alpha — Fair Rotation
- Daily rooms now use a shuffled 30-room order, so every room appears once before any repeats.
- Profile Confirm / Cancel buttons are fixed below the scroll and always visible.
- Reset progress now clears a room-locked frame and a locked guest avatar, falling back to plain / Crumb.
- Home's caption follows the selected avatar instead of always saying Crumb.
- Added QA for the 30-day rotation and reset fallbacks.
- Android debug APK rebuilt at version `0.6.3` (version code 15).
## v0.6.2-alpha — Clean Cutouts ## 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.
+9 -8
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.
- 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.
@@ -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.3` (version code 15)
- Min SDK: 24 (Android 7.0) - Min SDK: 24 (Android 7.0)
- Target SDK: 36 - Target SDK: 36
- Size: about 41 MB - Size: about 41 MB
- Portrait orientation - Portrait orientation
- Build label: `v0.6.2-alpha · build 2026-12-03` - Build label: `v0.6.3-alpha · build 2026-12-03`
To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging: To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging:
@@ -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.3-alpha** (“Fair Rotation”) with the build label on Home and in Settings.
Gitea repository: Gitea repository:
@@ -224,14 +224,15 @@ 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
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.3-alpha
The v0.6.2-alpha APK is also at: The v0.6.3-alpha APK is also at:
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.6.2-alpha/Ratdoku-v0.6.2-alpha.apk` `https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.6.3-alpha/Ratdoku-v0.6.3-alpha.apk`
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.6.2-alpha`. `redesign-360` is the branch with the current 360dp work; it is tagged `v0.6.3-alpha`.
The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`). The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`).
+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=15
version/name="0.6.2" version/name="0.6.3"
package/unique_name="com.ratdoku.game" package/unique_name="com.ratdoku.game"
package/name="Ratdoku" package/name="Ratdoku"
package/signed=true package/signed=true
+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.3-alpha"
config/features=PackedStringArray("4.7", "GL Compatibility") config/features=PackedStringArray("4.7", "GL Compatibility")
config/icon="res://icon.png" config/icon="res://icon.png"
boot_splash/show_image=false boot_splash/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()
+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.3-alpha"
const CODENAME := "Clean Cutouts" const CODENAME := "Fair Rotation"
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.3-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)
+19
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")