Members
-
DEBUG
-
Properties:
Name Type Description DEBUGboolean enable/disable Debug() output. -
MIDI_AVAILABLE
-
Properties:
Name Type Description trueboolean if midi is available. -
MOUSE_AVAILABLE
-
Properties:
Name Type Description trueboolean if mouse is available. -
NO_COLOR
-
Properties:
Name Type Description NO_COLORColor the transparent Color. -
SOUND_AVAILABLE
-
true if WAV sound is available.
Properties:
Type Description boolean -
SYNTH_AVAILABLE
-
true if FM sound is available.
Properties:
Type Description boolean
Methods
-
CharCode(s)
-
get char code.
Parameters:
Name Type Description sstring a string Returns:
- the ASCII-code of the first character. -
Debug(str)
-
print javascript debug output if DEBUG is true.
Parameters:
Name Type Description strstring the message to print. -
Include(name)
-
include a module. The exported functions are copied into global scope.
Parameters:
Name Type Description namestring module file name. -
Input(event)
-
This function is called whenever mouse / keyboard input happens.
Parameters:
Name Type Description eventEvent the current event. -
Loop()
-
This function is called after setup repeatedly until Stop is called. After calling Stop the program ends when Loop exits.
-
Require(name)
-
import a module.
Parameters:
Name Type Description namestring module file name. Returns:
- the imported module. -
Setup()
-
This function is called once at startup. It can initialize variables, setup hardware, etc.
-
StartupInfo()
-
print startup info with screen details.