OttoRobba Posted November 19, 2014 Report Share Posted November 19, 2014 Hey folks View tutorial on how to use Browserify with Phaser Phaser + Browserify template Phaser + Browserify + CoffeeScript template Let me know what you guys think Installing the templates is easy. Using the command line, cd into the folder you extracted and runnpm installThen you can simply run it all withsh start.shThere is also a nifty Loading screen and nice default states drhayes 1 Quote Link to comment Share on other sites More sharing options...
Sam Posted November 19, 2014 Report Share Posted November 19, 2014 I was looking for something like this on Phaser, I've only had a quick look at this. Thank you very much, I will have a closer look at the tutorial by time.If you have finished your game, you only have to keep and include the bundle.js am I right?I would love to see if this runs in CocoonJS. But this should be no problem I guess, again: thank you Quote Link to comment Share on other sites More sharing options...
OttoRobba Posted November 19, 2014 Author Report Share Posted November 19, 2014 I was looking for something like this on Phaser, I've only had a quick look at this. Thank you very much, I will have a closer look at the tutorial by time.If you have finished your game, you only have to keep and include the bundle.js am I right?I would love to see if this runs in CocoonJS. But this should be no problem I guess, again: thank you Due to a bug between Phaser and Browserify, you need to concatenate phaser.js with bundle.js if you want to distribute your game in a single .js file. Sorry After you concatenate it should run just fine with CocoonJS though I wanted a solution for development even if I had to use Gulp or something else when distributing, given the limitations we currently face. Sam 1 Quote Link to comment Share on other sites More sharing options...
OttoRobba Posted December 10, 2014 Author Report Share Posted December 10, 2014 I've just updated this and would love feedback from others. You can now install all dependencies withnpm installAnd you can run your project withsh start.shThere is also a nifty Loading screen and better default states Quote Link to comment Share on other sites More sharing options...
OttoRobba Posted December 26, 2014 Author Report Share Posted December 26, 2014 New update allows you to use CoffeeScript if you want to Build step is already in the shell script so using it is dead simple! Quote Link to comment Share on other sites More sharing options...
srobertson421 Posted May 1, 2015 Report Share Posted May 1, 2015 Thanks for putting this together! All I'm getting when running the "sh start.sh" command is a new browser window with a "pre" element saying "undefined". Any help would be appreciated! Quote Link to comment Share on other sites More sharing options...
hoskope Posted January 8, 2016 Report Share Posted January 8, 2016 Tutorial link is dead. Quote Link to comment Share on other sites More sharing options...
chg Posted January 8, 2016 Report Share Posted January 8, 2016 Tutorial link is dead.The OP's website is down with the DNS being set to "draft-jabley-dnsop-refuse-any", if you want to see it maybe check archive.org and see if the page happened to be scrapped? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.