1 /**
2 The ApplicationManager is used to manage the application itself.
3 @author <a href="mailto:matthewcasperson@gmail.com">Matthew Casperson</a>
4 @class
5 */
6 function ApplicationManager()
7 {
8 /**
9 Initialises this object
10 @return A reference to the initialised object
11 */
12 this.startupApplicationManager = function()
13 {
14 this.startupGameObject();
15 this.background3 = new RepeatingGameObject().startupRepeatingGameObject(g_back2, 0, 100, 3, 600, 320, 1);
16 this.background2 = new RepeatingGameObject().startupRepeatingGameObject(g_back1, 0, 100, 2, 600, 320, 0.75);
17 this.background = new RepeatingGameObject().startupRepeatingGameObject(g_back0, 0, 0, 1, 600, 320, 0.5);
18 return this;
19 }
20
21 /**
22 Updates the object
23 @param dt The time since the last frame in seconds
24 @param context The drawing context
25 @param xScroll The global scrolling value of the x axis
26 @param yScroll The global scrolling value of the y axis
27 */
28 this.update = function(/**Number*/ dt, /**CanvasRenderingContext2D*/ context, /**Number*/ xScroll, /**Number*/ yScroll)
29 {
30 g_GameObjectManager.xScroll += 50 * dt;
31 }
32 }
33 ApplicationManager.prototype = new GameObject
Top