Commit Graph
9 Commits
Author SHA1 Message Date
Nathan Whitehead 883b9675e5 Switch SELECT+LEFT/RIGHT to be level section keys.
Add js code to move level up and down in a sensible way.
Update readme a bit.
2022-10-01 09:23:37 -06:00
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
Nathan Whitehead 0a3a0b087f Split out partial sprite rendering, add bindings into JavaScript.
Update PuzzleScriptPlus graphics source to allow custom font to work.
Only clear all sprite context when in PuzzleScript mode.
Use PuzzleScriptPlus mode on pzp files.
Make custom font off by default.
2022-09-25 21:50:21 -06:00
Nathan Whitehead fa2338d190 Initial try with PuzzleScriptPlus.
Status: files running, incorrect logic, incorrect graphics.
Not sure what's going on at the moment.
2022-09-25 19:57:36 -06:00
Nathan Whitehead 0a118ab089 Calculate update times more correctly (fixes lots of timing issues yay) 2022-09-22 11:27:38 -06:00
Nathan Whitehead 81b1ea24a2 Tidy up readme
Add cheat code of SELECT+START to skip level.
Fix bugs discovered with Singleton Traffic game (level 3 graphics glitch).
Dynamically resize sprites if pixels drawn with fillRect beyond border.
Update sprite clearing to always clear all of updated width and height.
2022-09-21 14:53:30 -06:00
Nathan Whitehead 3e6c0945f1 Update instruction screens to let games keep talking about keys 2022-09-20 14:38:10 -06:00
Nathan Whitehead 6124faa872 Fixup optimization levels, add better main loop timing 2022-09-20 10:16:39 -06:00
Nathan Whitehead 7adb13131d Generated font and babel in gn script 2022-09-19 13:37:23 -06:00