Skip to content

Commit fc1e0de

Browse files
committed
Merge pull request phaserjs#1923 from mkristo/pixi-patch
Make PIXI available for Phaser when using require
2 parents b9d4251 + 17c0768 commit fc1e0de

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/Phaser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ var Phaser = Phaser || {
115115
DEFAULT:0,
116116
LINEAR:0,
117117
NEAREST:1
118-
}
118+
},
119119

120+
PIXI: PIXI || {}
120121
};

src/pixi/Intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
* @author Mat Groves http://matgroves.com/ @Doormat23
33
*/
44

5-
(function(){
5+
var PIXI = (function(){
66

77
var root = this;

src/pixi/Outro.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
} else {
1313
root.PIXI = PIXI;
1414
}
15+
16+
return PIXI;
1517
}).call(this);

0 commit comments

Comments
 (0)