Global

Members

DEBUG

Properties:
Name Type Description
DEBUG boolean enable/disable Debug() output.

MIDI_AVAILABLE

Properties:
Name Type Description
true boolean if midi is available.

MOUSE_AVAILABLE

Properties:
Name Type Description
true boolean if mouse is available.

NO_COLOR

Properties:
Name Type Description
NO_COLOR Color 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
s string a string
Returns:
- the ASCII-code of the first character.

Debug(str)

print javascript debug output if DEBUG is true.
Parameters:
Name Type Description
str string the message to print.

Include(name)

include a module. The exported functions are copied into global scope.
Parameters:
Name Type Description
name string module file name.

Input(event)

This function is called whenever mouse / keyboard input happens.
Parameters:
Name Type Description
event Event 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
name string 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.