File | Date | Author | Commit |
---|---|---|---|
licenses | 2019-11-01 | Xavier Direz | [9d2823] docs: license files for SDL2_mixer |
v8PuzzlescriptWrapper | 2019-11-01 | Xavier Direz | [4305c2] feat: manage music and sound |
.gitignore | 2019-09-20 | Xavier Direz | [d473f3] feat: create visual studio project |
LICENSE | 2018-02-18 | Narkhos | [76fa71] Initial commit |
README.md | 2019-11-01 | Xavier Direz | [112b53] doc: v2.0.2 changes |
v8PuzzlescriptWrapper.sln | 2019-09-20 | Xavier Direz | [d473f3] feat: create visual studio project |
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.
I didn't rewrite puzzlescript engine in C++. The javascript engine is embeded so it can be replaced or updated easily (see ./data/js/puzzlescript/ sub-directory)
PuzzlescriptWrapper is published under the terms of the LGPL v3 license (See both GPL and LGPL Licenses for more details)
This is a rewrite of PuzzlescriptWrapper using visual studio and v8 javascript engine.
For this version, I tried a lot of games and fixed some bugs that prevent some of them to run correctly.
[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:
[x] Show/Hide Framerate by hitting TAB key
[] Sfx generation:
I'm using Duktape as the javascript engine to keep it simple and compact. Since Duktape is a non-JIT javascript engine, it is slower than Google v8 or Mozilla SpiderMonkey. So, if you are running a realtime Puzzlescript game with many rules, you will probably encounter some framerate issues.