This project provides a way to distribute a Puzzlescript game as a standalone application.
You can download a binary version of the project on lafaceobscuredupixel.fr
You can find the official Puzzlescript repository here.
PuzzlescriptWrapper is using the c++/SDL2/Opengl combo.
For this version, I tried a lot of games and fixed some bugs that prevent some of them to run correctly.
- Sfx emulation almost work (the sound is playing to fast but is mostly the same - short web color format like "#af0" is now working - fix some sprite display
- Most of puzzlescript games should be playable. - The game progression is saved locally - Sfx emulation is not finished yet - realtime games can be slow
[x] Loading puzzlescript game from ./data/games/game [x] Emulate the HTML canvas to allow puzzlescript to draw sprites in SDL2/Opengl context [x] Display currentLevel in SDL2/Opengl context [x] Send keyboard inputs to puzzlescript engine [x] Calling puzzlescript update() function according to setInterval [x] puzzlescript prelude parameters: realtime_interval zoomscreen flickscreen background_color text_color [x] saving/loading progression in ./data/localStorage [x] it's now possible to pass a game in command line:
- if you specify a game file name it will search it in ./data/games/ - by default, PuzzlescriptWrapper launch ./data/games/game
[x] Show/Hide Framerate by hitting TAB key
 Sfx generation:
- The sound generator does not simulate correctly puzzlescript's one yet - If you want to give it a try anyway (or if you want to fix it), you can set sfx to 'ON' in config.xml
- Rewrite part of puzzlescript engine in C++. It's probably a bad idea because processInput() function in puzzlescript/engine.js seems to be basically the whole engine. - Switching to spidermonkey or v8 - Waiting for Duktape to implement the JIT feature