mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 09:27:37 +00:00
9de1d494df
Ninja Physics is no longer included in the build files by default. Not enough people were using it, and not enough contributions were coming in to help polish it up, so we've saved the space and removed it. It's still available in the grunt build files if you require it, but we're deprecating it from the core library at this time. It will make a return in Phaser3 when we move to a modular class system.
68 lines
1.7 KiB
JavaScript
68 lines
1.7 KiB
JavaScript
module.exports = {
|
|
|
|
// Our custom version of p2
|
|
p2: {
|
|
src: require('../manifests/p2'),
|
|
dest: '<%= compile_dir %>/p2.js'
|
|
},
|
|
|
|
// Our custom version of Pixi
|
|
pixi: {
|
|
src: require('../manifests/pixi'),
|
|
dest: '<%= compile_dir %>/pixi.js'
|
|
},
|
|
|
|
// Our custom version of Ninja Physics
|
|
ninja: {
|
|
src: require('../manifests/ninja'),
|
|
dest: '<%= compile_dir %>/ninja.js'
|
|
},
|
|
|
|
// Phaser without Pixi, P2 or Ninja Physics (does include Arcade Physics)
|
|
phaser: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: require('../manifests/phaser'),
|
|
dest: '<%= compile_dir %>/phaser-no-libs.js'
|
|
},
|
|
|
|
// Phaser with Pixi and Arcade Physics, but no Ninja or P2 libs
|
|
phaserArcadePhysics: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: ['<%= compile_dir %>/pixi.js', '<%= compile_dir %>/phaser-no-libs.js'],
|
|
dest: '<%= compile_dir %>/phaser-arcade-physics.js'
|
|
},
|
|
|
|
// One ring to rule them all, with ninja physics
|
|
/*
|
|
standalone: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: [
|
|
'<%= compile_dir %>/pixi.js',
|
|
'<%= compile_dir %>/phaser-no-libs.js',
|
|
'<%= compile_dir %>/ninja.js',
|
|
'<%= compile_dir %>/p2.js'
|
|
],
|
|
dest: '<%= compile_dir %>/phaser.js'
|
|
}
|
|
*/
|
|
|
|
// One ring to rule them all
|
|
standalone: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: [
|
|
'<%= compile_dir %>/pixi.js',
|
|
'<%= compile_dir %>/phaser-no-libs.js',
|
|
'<%= compile_dir %>/p2.js'
|
|
],
|
|
dest: '<%= compile_dir %>/phaser.js'
|
|
}
|
|
|
|
};
|