hextris/js/save-state.js

17 lines
247 B
JavaScript
Raw Normal View History

2014-05-26 01:59:33 +00:00
function exportSaveState() {
2014-05-26 03:52:35 +00:00
var state = {};
2014-05-26 01:59:33 +00:00
2014-05-26 03:52:35 +00:00
if(gameState == 1 || gameState == -1) {
state = {
clock: MainClock,
blocks: blocks,
score: score,
wavegen: waveone,
gdx: gdx,
gdy: gdy,
}
2014-05-26 01:59:33 +00:00
}
2014-05-26 03:52:35 +00:00
return JSONfn.stringify(state);
}