lukaMis Posted July 3, 2014 Share Posted July 3, 2014 Hi Are there any good tutorials or guides how to use Phaser as modules. So i do not just include phaser.min.js but choose which parts i need so i can reduce file size. TnxLuka Link to comment Share on other sites More sharing options...
lewster32 Posted July 3, 2014 Share Posted July 3, 2014 You'll find modular builds of Phaser here: https://github.com/photonstorm/phaser/tree/master/build/custom Link to comment Share on other sites More sharing options...
rich Posted July 3, 2014 Share Posted July 3, 2014 Just to add: that's as modular as it gets right now. Am considering how we could break apart a few deep dependencies, but this work isn't done yet. However it's a low(ish) priority, as I still bet the amount of space saved by knocking a few JS files out will be nothing compared to the actual assets you use in your game. Link to comment Share on other sites More sharing options...
eguneys Posted July 3, 2014 Share Posted July 3, 2014 I need a phaser module without the physics engine, otherwise i am switching. Link to comment Share on other sites More sharing options...
lewster32 Posted July 3, 2014 Share Posted July 3, 2014 The 'no libs' version will suit you fine, so long as you include pixi first, as this version also strips out pixi. Link to comment Share on other sites More sharing options...
lukaMis Posted July 3, 2014 Author Share Posted July 3, 2014 Tnx for replies guys.I too was looking for phaser without physics engine so i can just include ARCADE if i need / want to. Link to comment Share on other sites More sharing options...
eguneys Posted July 3, 2014 Share Posted July 3, 2014 It still includes Arcade Physics, I guess it's built into Phaser maybe? Link to comment Share on other sites More sharing options...
rich Posted July 3, 2014 Share Posted July 3, 2014 Yes because the Particle System uses it. If you don't need those just edit yourself a new manifest file and rebuild it. Link to comment Share on other sites More sharing options...
Recommended Posts