@@ -16,9 +16,9 @@ module Phaser {
1616
1717 this . _game = game ;
1818
19- this . _cameras = new CameraManager ( this . _game , 0 , 0 , width , height ) ;
19+ this . cameras = new CameraManager ( this . _game , 0 , 0 , width , height ) ;
2020
21- this . _game . camera = this . _cameras . current ;
21+ this . _game . camera = this . cameras . current ;
2222
2323 this . group = new Group ( this . _game , 0 ) ;
2424
@@ -29,8 +29,8 @@ module Phaser {
2929 }
3030
3131 private _game : Game ;
32- private _cameras : CameraManager ;
3332
33+ public cameras : CameraManager ;
3434 public group : Group ;
3535 public bounds : Rectangle ;
3636 public worldDivisions : number ;
@@ -41,22 +41,22 @@ module Phaser {
4141 this . group . update ( ) ;
4242 this . group . postUpdate ( ) ;
4343
44- this . _cameras . update ( ) ;
44+ this . cameras . update ( ) ;
4545
4646 }
4747
4848 public render ( ) {
4949
5050 // Unlike in flixel our render process is camera driven, not group driven
51- this . _cameras . render ( ) ;
51+ this . cameras . render ( ) ;
5252
5353 }
5454
5555 public destroy ( ) {
5656
5757 this . group . destroy ( ) ;
5858
59- this . _cameras . destroy ( ) ;
59+ this . cameras . destroy ( ) ;
6060
6161 }
6262
@@ -109,15 +109,15 @@ module Phaser {
109109 // Cameras
110110
111111 public createCamera ( x : number , y : number , width : number , height : number ) : Camera {
112- return this . _cameras . addCamera ( x , y , width , height ) ;
112+ return this . cameras . addCamera ( x , y , width , height ) ;
113113 }
114114
115115 public removeCamera ( id : number ) : bool {
116- return this . _cameras . removeCamera ( id ) ;
116+ return this . cameras . removeCamera ( id ) ;
117117 }
118118
119119 public getAllCameras ( ) : Camera [ ] {
120- return this . _cameras . getAll ( ) ;
120+ return this . cameras . getAll ( ) ;
121121 }
122122
123123 // Game Objects
0 commit comments