Skip to content

Commit 7c624f4

Browse files
committed
Updated console.log and README.
1 parent e0b5e94 commit 7c624f4

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ Finally the list of [community authored Phaser Tutorials](http://www.lessmilk.co
4848

4949
Version 2.0.6 - "Jornhill" - -in development-
5050

51+
### Significant Internal Change
52+
53+
* The PIXI.TextureCache global array is no longer used internally for storing Pixi Texture files. It's not actually a requirement of Pixi to use this and we were running into various issues with texture conflicts in DragonBones tests and issues with shared texture frames between Sprites - meaning we couldn't crop a sprite without cropping all instances, without creating a new texture frame at run-time - which as you can imagine is a huge overhead if you then want to crop an animated Sprite. After talking with Mat at GoodBoyDigital about the issue it was his idea to just not use the TextureCache at all, and let each Sprite have its own frame, so this is the direction we've taken. We didn't save this for the 2.1 release as it doesn't actually alter the Phaser API at all, but it does change how things are working internally - so if you've got game code hooked directly into the TextureCache you need to be aware of this change.
54+
5155
### Updates
5256

5357
* Merged Pixi 1.5.4 with Phaser - all of the lovely new Pixi features are in, like complex Graphics objects and masking.

src/Phaser.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,6 @@ var Phaser = Phaser || {
7979
// however the Stage object expects a reference to it, so here is a dummy entry.
8080
// Ensure that an existing PIXI.InteractionManager is not overriden - in case you're using your own PIXI library.
8181
PIXI.InteractionManager = PIXI.InteractionManager || function () {};
82+
83+
// Equally we're going to supress the Pixi console log, with their agreement.
84+
PIXI.dontSayHello = true;

src/core/Game.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ Phaser.Game.prototype = {
507507
if (this.device.chrome)
508508
{
509509
var args = [
510-
'%c %c %c Phaser v' + v + ' - ' + r + ' - ' + a + ' %c %c ' + ' http://phaser.io %c %c \u2665%c\u2665%c\u2665 ',
510+
'%c %c %c Phaser v' + v + ' | Pixi.js ' + PIXI.VERSION + ' | ' + r + ' | ' + a + ' %c %c ' + ' http://phaser.io %c %c \u2665%c\u2665%c\u2665 ',
511511
'background: #0cf300',
512512
'background: #00bc17',
513513
'color: #ffffff; background: #00711f;',
@@ -532,7 +532,7 @@ Phaser.Game.prototype = {
532532
}
533533
else if (window['console'])
534534
{
535-
console.log('Phaser v' + v + ' - Renderer: ' + r + ' - Audio: ' + a + ' - http://phaser.io');
535+
console.log('Phaser v' + v + ' | Pixi.js ' + PIXI.VERSION + ' | ' + r + ' | ' + a + ' | http://phaser.io');
536536
}
537537

538538
},

0 commit comments

Comments
 (0)