Files
Nathan Whitehead b9da3373a3 Add initial support for save states.
Remove demo.pz game.
Split out gameloop functionality into separate files.
Add serialize/deserialize functions into main.js.
Add serialize/deserialize functionality into gameloop class.
Allow sfxr to warn but not stop on bad seed numbers.
Handle negative hex values (fixes corrupted saves in large games).
Make serialization auto retry with truncation if size is too big.
Use original text title screens.
2022-09-30 11:01:42 -06:00

11 lines
249 B
JavaScript

var old_redraw = redraw;
redraw = function() {
old_redraw();
native_screen_fill(state.bgcolor);
native_sprite_render(canvas.context.nativeId);
native_flip();
};
consolePrint = console.log;
verbose_logging = true;
canYoutube = false;