Nathan Whitehead
6c83886129
Switch cheat to be A + START.
...
Add script to generate pz files from Phil Schatz's repo.
2022-09-22 19:22:53 -06:00
Nathan Whitehead
f55ad80352
Remove stb files (not needed).
...
Update npm babel to babel-cli.
Rework dockerfile to work without node_modules already installed.
2022-09-22 18:54:46 -06:00
Nathan Whitehead
ac956bc9e6
Make restarting choose right font choice.
2022-09-22 12:17:23 -06:00
Nathan Whitehead
b841bc87c4
Tidy up build default options.
...
Remove hardcoded dependency on path structure for demo.pz, copy to bundle file properly.
Allow restarting games.
Add info file for retroarch to allow choosing pz content.
2022-09-22 12:13:15 -06:00
Nathan Whitehead
fc5ef53bda
Add core option to turn on/off custom antialiased font.
2022-09-22 10:57:40 -06:00
Nathan Whitehead
73d3d9b632
Tidy up and remove unused files.
...
Remove sysfont code.
Update LICENSE file to mention all used licenses.
2022-09-21 16:46:16 -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
06cf09db55
Add full duktape project
2022-09-20 10:52:21 -06:00
Nathan Whitehead
6124faa872
Fixup optimization levels, add better main loop timing
2022-09-20 10:16:39 -06:00
Nathan Whitehead
f5e88fd824
Use custom font
2022-09-19 13:53:09 -06:00
Nathan Whitehead
7adb13131d
Generated font and babel in gn script
2022-09-19 13:37:23 -06:00
Nathan Whitehead
ca68002266
Clip sprite positions during blit.
...
Turn on c++ debug mode to catch vector illegal accesses.
2022-09-19 09:05:25 -06:00
Nathan Whitehead
fb785119ed
Fixup title spacing a bit and make instructions consistent.
2022-09-18 23:39:43 -06:00
Nathan Whitehead
cab2d4f3da
Make sounds work
2022-09-18 23:20:09 -06:00
Nathan Whitehead
0dd1baa455
Clean up sfxr interface a bit.
2022-09-18 22:44:16 -06:00
Nathan Whitehead
2bfa0e76de
Integrate SFXR code from old pzgood project
2022-09-18 22:30:16 -06:00
Nathan Whitehead
53c2a6f84e
Handle sound hooks (with prints and not sound yet)
2022-09-18 22:13:37 -06:00
Nathan Whitehead
715b4c48f4
Better handling of default game, explicit file now.
2022-09-18 22:06:49 -06:00
Nathan Whitehead
69ffec478a
Add js set method for setting js state.
...
Move main.js call to ROM load phase.
2022-09-18 21:55:13 -06:00
Nathan Whitehead
1dc0be440b
Tidy up main js
2022-09-18 21:26:51 -06:00
Nathan Whitehead
f79ad14646
Test flicker again, still need double buffer to avoid whole screen flicker
2022-09-18 21:20:22 -06:00
Nathan Whitehead
b9f36c50d5
Remove instances, just keep sprites and render main canvas sprite in redraw directly.
2022-09-18 21:17:12 -06:00
Nathan Whitehead
43929e68df
Fixup message at start, add screen fill to bg color (seems useless?)
2022-09-18 20:36:38 -06:00
Nathan Whitehead
fbe4136a96
Fix flicker on arm with double buffer and flip method.
2022-09-18 19:38:04 -06:00
Nathan Whitehead
a096cfc1d2
Swap around some default keys.
2022-09-18 17:01:41 -06:00
Nathan Whitehead
68341ee85c
Woot get transparency working
2022-09-18 16:53:00 -06:00
Nathan Whitehead
c75d6e26cd
Close to working
2022-09-18 16:30:31 -06:00
Nathan Whitehead
3b747e7a4b
Add events and queue to run handler in right JS thread
2022-09-18 15:58:23 -06:00
Nathan Whitehead
f9e9cf49e4
Added setup and postsetup that seem to be stopping all eval errors to start screen
2022-09-18 14:22:02 -06:00
Nathan Whitehead
c97ff96dae
Adding puzzlescript es5, working on filenames for evals.
2022-09-18 11:59:12 -06:00
Nathan Whitehead
788a6efbc9
Start interpreting puzzlescript source
2022-09-18 11:17:34 -06:00
Nathan Whitehead
9f897eaa16
Adding dom setup stuff
2022-09-18 10:45:54 -06:00
Nathan Whitehead
b344f79329
Add rng module and try it
2022-09-18 10:34:08 -06:00
Nathan Whitehead
ffe514a11f
Add timer capability and hook to js
2022-09-17 22:40:24 -06:00
Nathan Whitehead
13d527d6ba
Sprites have instances, and native methods for instances.
2022-09-17 15:10:33 -06:00
Nathan Whitehead
c675b23b2a
Tidy sprites, better js thread interface.
2022-09-17 14:46:01 -06:00
Nathan Whitehead
0599bf508b
Tidy up js Context, harden rect drawing.
2022-09-17 14:13:00 -06:00
Nathan Whitehead
2ac8b681b2
Add thread to js
2022-09-17 11:53:22 -06:00
Nathan Whitehead
78e319d1ec
Split out js and sprites
2022-09-17 11:35:27 -06:00
Nathan Whitehead
92e17d5a17
Add mutex to subsystems
2022-09-17 10:59:54 -06:00
Nathan Whitehead
0f367c8966
Split out graphics and audio files
2022-09-17 10:50:28 -06:00
Nathan Whitehead
3f0f563da7
Split out implementation for stb_image
2022-09-17 10:24:02 -06:00
Nathan Whitehead
cb81f080bf
Reorg dirs
2022-09-17 10:13:40 -06:00
Nathan Whitehead
6c4c3eb3c4
Adding separate logic thread
2022-09-17 09:13:38 -06:00
Nathan Whitehead
a18d82f962
Bundle system font, update bundler script to be nicer
2022-09-17 08:56:14 -06:00
Nathan Whitehead
6b84cd1a0d
Working on including PuzzleScript source directly
2022-09-16 19:13:59 -06:00
Nathan Whitehead
3824c4fd2a
Add native_clear_contexts
2022-09-16 17:05:10 -06:00
Nathan Whitehead
fb3eba15ec
Better example, fix bug with color parsing
2022-09-16 17:02:04 -06:00
Nathan Whitehead
e389f5ba02
Add native function for drawing on sprites
2022-09-16 17:00:23 -06:00
Nathan Whitehead
b1338a2ecd
Working on sprites
2022-09-16 16:26:22 -06:00