Narkhos / Puzzlescript-Wrapper

a C++ Wrapper for Puzzlescript
GNU Lesser General Public License v3.0
9 stars 0 forks source link

Puzzlescript Wrapper

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)

v2.0.3

v2.0.2

v2.0.1

v2.0.0

This is a rewrite of PuzzlescriptWrapper using visual studio and v8 javascript engine.

v0.1.1

For this version, I tried a lot of games and fixed some bugs that prevent some of them to run correctly.

Content

v0.1.0

Content

Detail

[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:

Performance Note

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.

Possible solutions: