Mac OS X
npm install ./build.py open index.html
If we want to get something showing as soon as possible, would it make sense to attept to have a small subset of core start before body.onload() is called? Resources might then live in their own <script> blocks. Hmm.
called immediately when scene is made active
called immediately before scene is deactivated
called when canvas is resized while scene is active
called every engine.Tick seconds; possibly multiple times per frame. All calls to tick() for a frame will be made before a call to update().
called every frame; parameter is elapsed time in seconds
called every frame
mouse(x, y, isDown) [optional]
called when the mouse state changes
Cutscene Script Actions
set pawn's location to the parameter.
unset pawn's location. it will not be drawn. "say" actions will behave like "narrate" actions.
wait:2.0 or wait:"signal"
if called with a number, waits that number of seconds. called with a string, waits for a signal of that name to be set.
sets the given signal. signals are never unset
draws a dialog bubble with the given html over the pawn's head.
draws a bubble with the given html (not positioned relative to the pawn).
walks through the given list of points. if the pawn is not visible, it will start at the first point. otherwise, it will start from its current location.
Invoke an arbitrary function. The this pointer will be null.
Use this to test out music and synths.
./play.js music/gymnopedie.mml synths/bells.js