Skip to content

Commit e47a774

Browse files
committed
Modified showDebugHeader so it works on Chrome, FF and Safari. Updated colors and text. Removed the easter egg.
1 parent 5cb7cc8 commit e47a774

1 file changed

Lines changed: 9 additions & 42 deletions

File tree

src/core/Game.js

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -685,56 +685,23 @@ Phaser.Game.prototype = {
685685
return;
686686
}
687687

688-
var v = Phaser.VERSION;
689-
var r = 'Canvas';
690-
var a = 'HTML Audio';
691-
var c = 1;
692-
693-
if (this.renderType === Phaser.WEBGL)
694-
{
695-
r = 'WebGL';
696-
c++;
697-
}
698-
else if (this.renderType === Phaser.HEADLESS)
699-
{
700-
r = 'Headless';
701-
}
702-
703-
if (this.device.webAudio)
704-
{
705-
a = 'WebAudio';
706-
c++;
707-
}
708-
709-
if (this.device.chrome)
688+
if (!this.device.ie)
710689
{
711690
var args = [
712-
'%c %c %c Phaser v' + v + ' | Pixi.js | ' + r + ' | ' + a + ' %c %c ' + '%c http://phaser.io %c\u2665%c\u2665%c\u2665',
713-
'background: #fb8cb3',
714-
'background: #d44a52',
715-
'color: #ffffff; background: #871905;',
716-
'background: #d44a52',
717-
'background: #fb8cb3',
718-
'background: #ffffff'
691+
'%c %c %c %c %c Phaser v' + Phaser.VERSION + ' / Pixi.js %c http://phaser.io',
692+
'background: #ff0000',
693+
'background: #ffff00',
694+
'background: #00ff00',
695+
'background: #00ffff',
696+
'color: #ffffff; background: #000;',
697+
'background: #fff'
719698
];
720699

721-
for (var i = 0; i < 3; i++)
722-
{
723-
if (i < c)
724-
{
725-
args.push('color: #ff2424; background: #fff');
726-
}
727-
else
728-
{
729-
args.push('color: #959595; background: #fff');
730-
}
731-
}
732-
733700
console.log.apply(console, args);
734701
}
735702
else if (window['console'])
736703
{
737-
console.log('Phaser v' + v + ' | Pixi.js | ' + r + ' | ' + a + ' | http://phaser.io');
704+
console.log('Phaser v' + Phaser.VERSION + ' / Pixi.js / http://phaser.io');
738705
}
739706

740707
},

0 commit comments

Comments
 (0)