feat(meowdoku): identity, gifts, achievements and wallpapers

Local-only v0.8.0 build. Adds player name/ID, achievements, claimable 7-day gift, daily share/stats, saved boards, 2048px rat-track wallpapers, difficulty/volume settings, and save v6. Not pushed or published.
This commit is contained in:
Ratdoku Builder committed 2026-12-03 21:21:59 -06:00
1 parent 5c00b35e90
commit 6d302f5cb9
21 files changed
+623 -41

No files matched your search

+58
View File
@@ -10,6 +10,9 @@ var toggles := {}
var hold_slider: HSlider
var hold_value: Label
var hold_panel: PanelContainer
var music_volume_slider: HSlider
var difficulty_button: Button
var theme_button: Button
var game_actions: HBoxContainer
var reset_row: Control
var resume_button: Button
@@ -91,6 +94,14 @@ func _ready() -> void:
_add_toggle(list, "Reduce motion", "Stop the bob and placement pop.", "reduce_motion")
_add_toggle(list, "Double-tap to place", "Tap = mark · double-tap = check in.", "double_tap_place")
_add_toggle(list, "Music", "Play the hotel lounge loop.", "music")
_add_toggle(list, "Sound effects", "UI and completion chimes.", "sfx")
_add_slider_row(list, "Music volume", "Lounge loop loudness.", "music_volume")
difficulty_button = UI.button("Difficulty: Normal", false, 40)
difficulty_button.pressed.connect(_cycle_difficulty)
list.add_child(difficulty_button)
theme_button = UI.button("Wallpaper: Cream", false, 40)
theme_button.pressed.connect(_cycle_theme)
list.add_child(theme_button)
_add_hold_row(list)
list.add_child(UI.spacer(2))
@@ -226,6 +237,13 @@ func refresh() -> void:
if hold_slider != null:
hold_slider.set_value_no_signal(float(SaveGame.get_setting("hold_seconds")))
hold_value.text = "%.2f s" % hold_slider.value
if music_volume_slider != null:
music_volume_slider.set_value_no_signal(float(SaveGame.get_setting("music_volume")))
if difficulty_button != null:
difficulty_button.text = "Difficulty: %s" % str(SaveGame.get_setting("difficulty")).capitalize()
if theme_button != null:
var theme: Dictionary = SaveGame.THEMES.get(SaveGame.theme_id(), {})
theme_button.text = "Wallpaper: %s" % str(theme.get("name", "Cream"))
_update_hold_availability()
@@ -281,6 +299,46 @@ func _add_toggle(parent: VBoxContainer, title: String, detail: String, key: Stri
parent.add_child(panel)
func _add_slider_row(parent: VBoxContainer, title: String, detail: String, key: String) -> void:
var panel := UI.panel(Palette.PAPER, 14, 8)
var column := VBoxContainer.new()
column.add_theme_constant_override("separation", 2)
panel.add_child(column)
column.add_child(UI.label(title, 14))
column.add_child(UI.label(detail, 10, Palette.MUTED))
var slider := HSlider.new()
slider.min_value = 0.0
slider.max_value = 1.0
slider.step = 0.05
slider.value = float(SaveGame.get_setting(key))
slider.size_flags_horizontal = Control.SIZE_EXPAND_FILL
slider.value_changed.connect(func(value: float) -> void: SaveGame.set_setting(key, snapped(value, 0.05)))
column.add_child(slider)
parent.add_child(panel)
if key == "music_volume":
music_volume_slider = slider
func _cycle_difficulty() -> void:
var order := ["normal", "easy", "zen"]
var current := str(SaveGame.get_setting("difficulty"))
var next_index := (order.find(current) + 1) % order.size()
SaveGame.set_setting("difficulty", order[next_index])
refresh()
func _cycle_theme() -> void:
var order := ["cream", "sage", "rose", "dusk", "gold"]
var current := SaveGame.theme_id()
var start := order.find(current)
for offset in range(1, order.size() + 1):
var candidate: String = order[(start + offset) % order.size()]
if SaveGame.is_theme_unlocked(candidate):
SaveGame.select_theme(candidate)
refresh()
return
func _add_hold_row(parent: VBoxContainer) -> void:
var panel := UI.panel(Palette.PAPER, 14, 8)
hold_panel = panel