@@ -28,7 +28,7 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
2828
2929 if ( typeof width === "undefined" ) { width = 800 ; }
3030 if ( typeof height === "undefined" ) { height = 600 ; }
31- if ( typeof renderer === "undefined" ) { renderer = Phaser . RENDERER_AUTO ; }
31+ if ( typeof renderer === "undefined" ) { renderer = Phaser . AUTO ; }
3232 if ( typeof parent === "undefined" ) { parent = '' ; }
3333 if ( typeof state === "undefined" ) { state = null ; }
3434 if ( typeof transparent === "undefined" ) { transparent = false ; }
@@ -43,9 +43,6 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
4343 this . transparent = transparent ;
4444 this . antialias = antialias ;
4545 this . renderType = renderer ;
46- // this.renderer = renderer;
47-
48- console . log ( 'Phaser.Game' , width , height , renderer , parent , transparent , antialias ) ;
4946
5047 this . state = new Phaser . StateManager ( this , state ) ;
5148
@@ -246,8 +243,6 @@ Phaser.Game.prototype = {
246243 return ;
247244 }
248245
249- console . log ( 'Phaser.Game boot' ) ;
250-
251246 if ( ! document . body ) {
252247 window . setTimeout ( this . _onBoot , 20 ) ;
253248 }
@@ -287,13 +282,13 @@ Phaser.Game.prototype = {
287282 this . stage . boot ( ) ;
288283 // this.input.boot();
289284
290- if ( this . renderType == Phaser . RENDERER_CANVAS )
285+ if ( this . renderType == Phaser . CANVAS )
291286 {
292- console . log ( 'Phaser' , Phaser . VERSION , ' initialized. Rendering to Canvas') ;
287+ console . log ( '%cPhaser ' + Phaser . VERSION + ' initialized. Rendering to Canvas' , 'color: #ffff33; background: #000000 ') ;
293288 }
294289 else
295290 {
296- console . log ( 'Phaser' , Phaser . VERSION , ' initialized. Rendering to WebGL') ;
291+ console . log ( '%cPhaser ' + Phaser . VERSION + ' initialized. Rendering to WebGL' , 'color: #ffff33; background: #000000 ') ;
297292 }
298293
299294 this . isRunning = true ;
@@ -308,11 +303,11 @@ Phaser.Game.prototype = {
308303
309304 setUpRenderer : function ( ) {
310305
311- if ( this . renderType == Phaser . RENDERER_CANVAS || ( this . renderer == Phaser . RENDERER_AUTO && this . device . webGL == false ) )
306+ if ( this . renderType == Phaser . CANVAS || ( this . renderer == Phaser . AUTO && this . device . webGL == false ) )
312307 {
313308 if ( this . device . canvas )
314309 {
315- this . renderType = Phaser . RENDERER_CANVAS ;
310+ this . renderType = Phaser . CANVAS ;
316311 this . renderer = new PIXI . CanvasRenderer ( this . width , this . height , null , this . transparent ) ;
317312 Phaser . Canvas . setSmoothingEnabled ( this . renderer . view , this . antialias ) ;
318313 }
@@ -373,7 +368,8 @@ Phaser.Game.prototype = {
373368
374369 this . state . preRender ( ) ;
375370
376- // this.renderer.render();
371+ this . renderer . render ( this . stage . _s ) ;
372+
377373 this . plugins . render ( ) ;
378374
379375 this . state . render ( ) ;
@@ -389,7 +385,7 @@ Phaser.Game.prototype = {
389385 this . plugins . postUpdate ( ) ;
390386
391387 this . plugins . preRender ( ) ;
392- // this.renderer.render();
388+ this . renderer . render ( this . stage . _s ) ;
393389 this . plugins . render ( ) ;
394390 this . state . loadRender ( ) ;
395391 this . plugins . postRender ( ) ;
0 commit comments