hextris/js/save-state.js

21 lines
316 B
JavaScript
Raw Normal View History

2014-05-26 01:59:33 +00:00
function exportSaveState() {
var state = {
clock: undefined,
blocks: undefined,
iter: undefined,
score: undefined,
};
if(gameState == 1) {
state.clock = MainClock;
state.blocks = blocks;
state.iter = iter;
state.score = score;
}
return JSON.stringify(state);
}
function loadSaveState() {
}