pat Posted April 14, 2014 Share Posted April 14, 2014 hello, I am looking at the code of phaser. There is a lot of comment.When you are developing PHASER, are you using a special program to automatically generate the documentation and the comment ?? Thanks a lot Patrick/*** @author Richard Davey <[email protected]>* @copyright 2014 Photon Storm Ltd.* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}*//*** Create a new `Tile` object.** @class Phaser.Tile* @classdesc A Tile is a representation of a single tile within the Tilemap.* @constructor* @param {object} layer - The layer in the Tilemap data that this tile belongs to.* @param {number} index - The index of this tile type in the core map data.* @param {number} x - The x coordinate of this tile.* @param {number} y - The y coordinate of this tile.* @param {number} width - Width of the tile.* @param {number} height - Height of the tile.*/Phaser.Tile = function (layer, index, x, y, width, height) { /** * @property {object} layer - The layer in the Tilemap data that this tile belongs to. */ this.layer = layer; /** * @property {number} index - The index of this tile within the map data corresponding to the tileset. */ this.index = index; /** * @property {number} x - The x map coordinate of this tile. */ this.x = x; Link to comment Share on other sites More sharing options...
ericjbasti Posted April 14, 2014 Share Posted April 14, 2014 Most likely Phaser is using http://usejsdoc.org/ to generate the documentation. Link to comment Share on other sites More sharing options...
rich Posted April 14, 2014 Share Posted April 14, 2014 Yes, jsdoc. You can find the configuration and build files in the repo in docs/build Link to comment Share on other sites More sharing options...
pat Posted April 14, 2014 Author Share Posted April 14, 2014 Thanks a lot, I have a little more to read http://css.dzone.com/articles/introduction-jsdoc Patrick Link to comment Share on other sites More sharing options...
Recommended Posts