diff --git a/lib/p5.play.js b/lib/p5.play.js index 153e008b..15171ff8 100644 --- a/lib/p5.play.js +++ b/lib/p5.play.js @@ -716,16 +716,22 @@ deltaTime = ((now - then) / 1000)/INTERVAL_60; // seconds since last frame * A Sprite can have a collider that defines the active area to detect * collisions or overlappings with other sprites and mouse interactions. * + * To create a Sprite, use + * {{#crossLink "p5.play/createSprite:method"}}{{/crossLink}}. + * * @class Sprite - * @constructor - * @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 */ +// 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);