Skip to content

Commit 6793484

Browse files
committed
Merge pull request phaserjs#1236 from photonstorm/alvin/dev
Added the audiosprite class to the no-physics build and a new build with only p2
2 parents b9d10f5 + 125912a commit 6793484

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

tasks/manifests/phaser-nophysics.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"src/loader/Loader.js",
8686
"src/loader/LoaderParser.js",
8787

88+
"src/sound/AudioSprite.js",
8889
"src/sound/Sound.js",
8990
"src/sound/SoundManager.js",
9091

tasks/options/concat.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ module.exports = {
5454
dest: '<%= compile_dir %>/phaser-no-physics.js'
5555
},
5656

57+
// Phaser with just P2 physics included. Does include Pixi.
58+
phaserP2Physics: {
59+
options: {
60+
banner: '<%= banner %>'
61+
},
62+
src: [
63+
'<%= compile_dir %>/pixi.js',
64+
require('../manifests/phaser-nophysics'),
65+
'<%= compile_dir %>/p2.js'
66+
],
67+
dest: '<%= compile_dir %>/phaser-p2-physics.js'
68+
},
69+
5770
// One ring to rule them all
5871
standalone: {
5972
options: {

tasks/options/uglify.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ module.exports = {
5656
dest: '<%= compile_dir %>/phaser-no-physics.min.js'
5757
},
5858

59+
phaserP2Physics: {
60+
options: {
61+
banner: '/* Phaser (P2) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
62+
},
63+
src: ['<%= concat.phaserP2Physics.dest %>'],
64+
dest: '<%= compile_dir %>/phaser-p2-physics.min.js'
65+
},
66+
5967
standalone: {
6068
options: {
6169
sourceMap: true,

0 commit comments

Comments
 (0)