hextris/js/save-state.js
2014-05-25 21:59:33 -04:00

21 lines
No EOL
316 B
JavaScript

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() {
}