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:
1 parent
5c00b35e90
commit
6d302f5cb9
21 files changed
+623
-41
No files matched your search
@@ -249,6 +249,20 @@ func _test_board_modes(save) -> void:
|
||||
"switching to double-tap should clear a held press")
|
||||
_check(not board.hold_fired, "switching to double-tap should clear hold_fired")
|
||||
|
||||
# Board snapshot round-trip for save/resume.
|
||||
var snap_cell := _find_empty(board)
|
||||
if snap_cell.x >= 0:
|
||||
save.set_setting("double_tap_place", false)
|
||||
_mouse_button(board, snap_cell, true)
|
||||
_mouse_button(board, snap_cell, false)
|
||||
var snap := board.snapshot()
|
||||
board.set_level(levels[1])
|
||||
board.set_level(level)
|
||||
var restored := board.restore_state(snap)
|
||||
_check(restored, "board snapshot should restore")
|
||||
_check(str(board.cells) == str(snap.get("cells")), "restored cells should match snapshot")
|
||||
_check(str(board.history) == str(snap.get("history")), "restored history should match snapshot")
|
||||
|
||||
board.free()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user