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.
This commit is contained in:
Ratdoku Builder committed 2026-12-05 17:10:37 -06:00
1 parent 9e2776f7c4
commit 25c918e6a2
5 files changed
+149 -22

No files matched your search

+13 -2
View File
@@ -67,13 +67,13 @@ func _test_reset_fallback(main, save) -> void:
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")
_check(main.home.avatar_portrait_id == "pepper", "Home avatar button 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")
_check(main.home.avatar_portrait_id == "crumb", "Home avatar button should return to Crumb")
func _test_screen_cycle(main) -> void:
@@ -507,6 +507,17 @@ func _test_v09(main, save) -> void:
for i in range(4):
save.record_guest_visit("pepper")
_check(save.story_line_count("pepper") == 3, "seventh visit should reveal the final line")
main.show_screen("home", false)
await process_frame
var mascot_before := str(main.home.mascot_id)
_check(not mascot_before.is_empty(), "Home should show a featured guest")
_check(main.home.mascot_note.text.find("Guest of the day") >= 0, "Home should label the daily guest")
main.home.mascot_button.pressed.emit()
await process_frame
_check(main.home.mascot_cycling, "tapping the mascot should start cycling")
_check(str(main.home.mascot_id) != mascot_before, "tapping should show another guest")
main.show_screen("guest_book", false)
await process_frame
main.guest_book._show_detail(Guests.by_id("pepper"))
await process_frame
_check(main.guest_book.detail_story_box.get_child_count() >= 3, "guest detail should show the story")