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_image = new Image();
17 g_image.src = "jsplatformer3-smiley.jpg";
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 }
Top