Skip to content

Commit

Permalink
Merge pull request phaserjs#1236 from photonstorm/alvin/dev
Browse files Browse the repository at this point in the history
Added the audiosprite class to the no-physics build and a new build with only p2
  • Loading branch information
photonstorm committed Oct 20, 2014
2 parents b9d10f5 + 125912a commit 6793484
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/manifests/phaser-nophysics.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"src/loader/Loader.js",
"src/loader/LoaderParser.js",

"src/sound/AudioSprite.js",
"src/sound/Sound.js",
"src/sound/SoundManager.js",

Expand Down
13 changes: 13 additions & 0 deletions tasks/options/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ module.exports = {
dest: '<%= compile_dir %>/phaser-no-physics.js'
},

// Phaser with just P2 physics included. Does include Pixi.
phaserP2Physics: {
options: {
banner: '<%= banner %>'
},
src: [
'<%= compile_dir %>/pixi.js',
require('../manifests/phaser-nophysics'),
'<%= compile_dir %>/p2.js'
],
dest: '<%= compile_dir %>/phaser-p2-physics.js'
},

// One ring to rule them all
standalone: {
options: {
Expand Down
8 changes: 8 additions & 0 deletions tasks/options/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ module.exports = {
dest: '<%= compile_dir %>/phaser-no-physics.min.js'
},

phaserP2Physics: {
options: {
banner: '/* Phaser (P2) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaserP2Physics.dest %>'],
dest: '<%= compile_dir %>/phaser-p2-physics.min.js'
},

standalone: {
options: {
sourceMap: true,
Expand Down

0 comments on commit 6793484

Please sign in to comment.