Sign in to follow this  
lukewilde

A Browserify and Grunt Powered Phaser Template

Recommended Posts

Howdy!

 

I'm a long time lurker, first time contributor.

 

I saw a good number of Phaser template projects when starting to use the framework, however none I saw had all the features I wanted to help ship production ready projects. 

 

https://github.com/lukewilde/phaser-js-boilerplate

 

Not wanting to repeat the readme, the distinguishing features include: 

The project is still a work in progress so feel free to ask questions, request features, and raise any issues you might find.

 

I hope you find it useful. Let me know what you think :)

 

Luke

Share this post


Link to post
Share on other sites

Howdy.

 

I've put in a couple of updates since first posting the project. The biggest adjustments are:

  • Added semicolons
  • Linting has been disabled on production builds by default
  • Added extra states (preloader and game)
  • Disparity between properties.js and package.json has been reduced

I was dubious about adding extra states initially, however feel preloader and game are fairly intrinsic. Let me know if anyone feels these are too imposing.

 

I do have a question however. Phaser ships with the MIT license which states:

 

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 

Given this do you think it's necessary that I add the licence in full at the top of the minified production build?

 

Thanks in advance,

Luke

Share this post


Link to post
Share on other sites

Hi Luke.

 

I'm node/phaser newbie so new preloader and game states were useful to me. I don't think this package needs more states If I know how you made states work in node environment I can easily add my own states as I please.

Now I'm slowly building up test game. Love the modular design of Node.

 

The only thing that buggs me are semicolons :D But there aren't much of them, so it's not a big-bad thing for me.

 

Thanks for the template!

Share this post


Link to post
Share on other sites

The only thing that buggs me are semicolons :D But there aren't much of them, so it's not a big-bad thing for me.

 

Glad it's proving useful and thanks for the feedback :)

 

I feel your pain. I typically rely on Automatic Semicolon Insertion in my own projects, but am aware that the practice is sometimes vehemently avoided.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.