1 /** target frames per second  
  2     @type Number
  3 */
  4 var FPS = 30;
  5 /** time between frames 
  6     @type Number
  7 */
  8 var SECONDS_BETWEEN_FRAMES = 1 / FPS;
  9 /** A global reference to the GameObjectManager instance  
 10     @type GameObjectManager
 11 */
 12 var g_GameObjectManager = null;
 13 /** An image to be used by the application  
 14     @type Image
 15 */
 16 var g_run_left = new Image();
 17 g_run_left.src = "run_left.png";
 18 
 19 // The entry point of the application is set to the init function
 20 window.onload = init;
 21 
 22 /**
 23     Application entry point
 24 */
 25 function init()
 26 {
 27     new GameObjectManager().startupGameObjectManager();
 28 }