diff options
| author | Simon Tatham <anakin@pobox.com> | 2013-03-30 20:16:21 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2013-03-30 20:16:21 +0000 |
| commit | 49fba922eac8c4022b002e340080be9a7134132e (patch) | |
| tree | 57b6947202a0235c3d3053a31fff36d9f8a69d2f /emccx.json | |
| parent | e2c84a5fd2b1ca6d3d8be0279466079b35b6c189 (diff) | |
| download | puzzles-49fba922eac8c4022b002e340080be9a7134132e.zip puzzles-49fba922eac8c4022b002e340080be9a7134132e.tar.gz puzzles-49fba922eac8c4022b002e340080be9a7134132e.tar.bz2 puzzles-49fba922eac8c4022b002e340080be9a7134132e.tar.xz | |
New front end! To complement the webification of my puzzles via Java
applets, here's an alternative webification in Javascript, using
Emscripten in asm.js mode (so that as browsers incorporate asm.js
optimisation, the game generation should run really fast).
[originally from svn r9781]
Diffstat (limited to 'emccx.json')
| -rw-r--r-- | emccx.json | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/emccx.json b/emccx.json new file mode 100644 index 0000000..31d7234 --- /dev/null +++ b/emccx.json @@ -0,0 +1,26 @@ +// -*- js -*- +// +// List of entry points exported by the C side of the Emscripten +// puzzle builds. Passed in to emcc via the option '-s +// EXPORTED_FUNCTIONS=[list]'. +// +// This file isn't actually a valid list in its current state, since +// emcc doesn't like comments or newlines. However, it's a nicer +// source form to keep the comments and newlines in, so we sed them +// away at compile time. +[ + // Event handlers for mouse and keyboard input + '_mouseup', + '_mousedown', + '_mousemove', + '_key', + // Callback when the program activates timing + '_timer_callback', + // Callback from button presses in the UI outside the canvas + '_command', + // Callbacks to return values from dialog boxes + '_dlg_return_sval', + '_dlg_return_ival', + // Main program, run at initialisation time + '_main' +] |