interface Applet

This interface allows you to implement any 2D game or multimedia application in JewelScript.

Constructors

Applet (Screen)Constructs a new Applet and passes a reference to the Screen.

Methods

Idle ()Called by the system in regular intervals when the application is idle.
OnClick (int, int, int)Called by the system when the user has clicked into the main window.
OnClose ()Called by the system right before the program terminates.
OnKey (int)Called by the system when the user has pressed any key.
OnOpen ()Called by the system when the Screen is has been made visible by the system.

Reference

method Applet (Screen)

Constructs a new Applet and passes a reference to the Screen.

You may create and add any Layer here.


method Idle ()

Called by the system in regular intervals when the application is idle.


method OnClick (int button, int x, int y)

Called by the system when the user has clicked into the main window.


method OnClose ()

Called by the system right before the program terminates.

You may perform any clean up tasks here.


method OnKey (int key)

Called by the system when the user has pressed any key.


method OnOpen ()

Called by the system when the Screen is has been made visible by the system.