v1.0.1 This should bring back memories. This new ProntoScript game outlines several useful features of scripting. The features specifically outlined are:
Object Oriented JavaScript using Prototypes.
Retrieving/Manipulating widgets using the Configuration File (CF) widget() function.
Toggling Firm Key label based on Game Status.
Illustrates one use of the Activity.scheduleAfter() method.
Includes transparent panel tagged with name '_PS_DEBUG' to facilitate debug/display of any error messages that might occur.
This game was adapted quicly from an HTML-Javascript based game. Port to ProntoScript was quite easy. The ProntoScript for this game is divided into 3 parts.
The Pong Game object and 'pong' variable in the Activity Script.
The Pong Game initialization code in the Page Script.
The Game Toggle functionality coded in Firm1 Button Script.
I've also included a custom Activity Icon (small) such that you can incorporate a button wherever you like. Enjoy!