注册会员 登录
Project1 返回首页

汪汪的个人空间 https://rpg.blue/?171386 [收藏] [复制] [分享] [RSS]

日志

【小白】机翻注释mv的 Rectangle

已有 51 次阅读2015-11-6 16:02 |个人分类:mv: rpg_core


//-----------------------------------------------------------------------------
/**长方形的类
 * The rectangle class.
 * @class Rectangle
 * @constructor
 * @param {Number} x The x coordinate for the upper-left corner x坐标,左上角
 * @param {Number} y The y coordinate for the upper-left corner Y坐标,左上角
 * @param {Number} width The width of the rectangle   矩形的宽度
 * @param {Number} height The height of the rectangle 矩形的高度
 */
function Rectangle() {
    this.initialize.apply(this, arguments);
}

Rectangle.prototype = Object.create(PIXI.Rectangle.prototype);
Rectangle.prototype.constructor = Rectangle;

Rectangle.prototype.initialize = function(x, y, width, height) {
    PIXI.Rectangle.call(this, x, y, width, height);
};

/**空矩形
 * @static
 * @property emptyRectangle
 * @type Rectangle
 * @private
 */
Rectangle.emptyRectangle = new Rectangle(0, 0, 0, 0);

/** x
 * The x coordinate for the upper-left corner.
 *
 * @property x
 * @type Number
 */

/** y
 * The y coordinate for the upper-left corner.
 *
 * @property y
 * @type Number
 */

/** 宽
 * The width of the rectangle.
 *
 * @property width
 * @type Number
 */

/** 高
 * The height of the rectangle.
 *
 * @property height
 * @type Number
 */


鸡蛋

鲜花

评论 (0 个评论)

facelist doodle 涂鸦笔

您需要登录后才可以评论 登录 | 注册会员

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-13 17:32

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

返回顶部