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

+40
View File
@@ -167,6 +167,46 @@ func set_level(level: Dictionary) -> void:
changed.emit()
func snapshot() -> Dictionary:
return {
"level_id": level_id,
"n": n,
"cells": cells.duplicate(true),
"auto_x": auto_x.duplicate(true),
"history": history.duplicate(true),
}
func restore_state(snapshot: Dictionary) -> bool:
if snapshot.is_empty() or str(snapshot.get("level_id", "")) != level_id:
return false
var saved_cells = snapshot.get("cells")
var saved_marks = snapshot.get("auto_x")
var saved_history = snapshot.get("history")
if (
typeof(saved_cells) != TYPE_ARRAY
or typeof(saved_marks) != TYPE_ARRAY
or typeof(saved_history) != TYPE_ARRAY
or saved_cells.size() != n
or saved_marks.size() != n
):
return false
cells = saved_cells.duplicate(true)
auto_x = saved_marks.duplicate(true)
history = saved_history.duplicate(true)
for key in fixed:
cells[key.x][key.y] = RAT
conflict_cells = Rules.conflicts(cells, regions)
pending_tap_cell = Vector2i(-1, -1)
press_cell = Vector2i(-1, -1)
hold_fired = false
last_placed = Vector2i(-1, -1)
pop_time = 0.0
queue_redraw()
changed.emit()
return true
func _draw() -> void:
if regions.size() != n or n <= 0:
return