feat(profile): selectable avatars and a daily streak view

Profile now has tabbed Avatar/Frame pickers with preview and Confirm/Cancel. Crumb plus unlocked guest portraits can be chosen as the avatar. A new Daily Streak screen shows the current streak, best streak, weekly calendar, next-frame goal, and a 7-day gift marker. Save format moves to version 4 with avatar_id and completion history.
This commit is contained in:
Ratdoku Builder committed 2026-12-02 23:57:28 -06:00
1 parent c91586b4a1
commit d0be689faa
16 files changed
+538 -60

No files matched your search

+9
View File
@@ -5,6 +5,7 @@ const GameScene = preload("res://scenes/Game.tscn")
const GuestBookScene = preload("res://scenes/GuestBook.tscn")
const RulebookScene = preload("res://scenes/Rulebook.tscn")
const ProfileScene = preload("res://scenes/Profile.tscn")
const StreakScene = preload("res://scenes/Streak.tscn")
const SettingsSheetScene = preload("res://scenes/SettingsSheet.tscn")
var home
@@ -12,6 +13,7 @@ var game
var guest_book
var rulebook
var profile
var streak
var settings_sheet
var screens := {}
var current := "home"
@@ -33,6 +35,7 @@ func _ready() -> void:
home.rules_pressed.connect(func() -> void: show_screen("rules"))
home.daily_pressed.connect(_on_daily)
home.profile_pressed.connect(func() -> void: show_screen("profile"))
home.streak_pressed.connect(func() -> void: show_screen("streak"))
game = GameScene.instantiate()
_add_screen(game)
@@ -51,6 +54,11 @@ func _ready() -> void:
profile = ProfileScene.instantiate()
_add_screen(profile)
profile.back_pressed.connect(go_back)
profile.streak_pressed.connect(func() -> void: show_screen("streak"))
streak = StreakScene.instantiate()
_add_screen(streak)
streak.back_pressed.connect(go_back)
settings_sheet = SettingsSheetScene.instantiate()
add_child(settings_sheet)
@@ -67,6 +75,7 @@ func _ready() -> void:
"guest_book": guest_book,
"rules": rulebook,
"profile": profile,
"streak": streak,
}
show_screen("home", false)