From 49fba922eac8c4022b002e340080be9a7134132e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 30 Mar 2013 20:16:21 +0000 Subject: 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] --- emccx.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 emccx.json (limited to 'emccx.json') 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' +] -- cgit v1.1