Skip to content

Commit

Permalink
Re-add sprite constructor docs as non-YUIDoc comment block.
Browse files Browse the repository at this point in the history
  • Loading branch information
toolness committed Mar 30, 2016
1 parent 6b5da80 commit 0bd39c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/p5.play.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,16 @@ deltaTime = ((now - then) / 1000)/INTERVAL_60; // seconds since last frame
* @class Sprite
*/

// For details on why these docs aren't in a YUIDoc comment block, see:
//
// https://github.com/molleindustria/p5.play/pull/67
//
// @param {Number} x Initial x coordinate
// @param {Number} y Initial y coordinate
// @param {Number} width Width of the placeholder rectangle and of the
// collider until an image or new collider are set
// @param {Number} height Height of the placeholder rectangle and of the
// collider until an image or new collider are set
function Sprite(pInst, _x, _y, _w, _h) {
var pInstBind = createPInstBinder(pInst);

Expand Down

0 comments on commit 0bd39c3

Please sign in to comment.