Jump to content

Phaser Contributor Style Guide


Recommended Posts

I don't think that there is such a Guide, but just check phaser.js coding style and make yours look like it.


/**    * Returns a member at random from the group.    *    * @method Phaser.Group#getRandom    * @param {number} startIndex - Optional offset off the front of the array. Default value is 0, or the beginning of the array.    * @param {number} length - Optional restriction on the number of values you want to randomly select from.    * @return {Any} A random child of this Group.    */getRandom: function (startIndex, length) {}

Indents are tabs.. and pretty much that's what I see, but maybe Rich or someone for the team could make a short Guide for a convention.


Link to comment
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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...