Classes
Global | Description |
---|---|
TilingSprite ⇐ PIXI.extras.PictureTilingSprite |
Functions
Global | Description |
---|---|
initialize(bitmap) | 初始化平铺精灵。 Initializes the tiling sprite. |
update() | 为每一帧更新平铺精灵。 Updates the tiling sprite for each frame. |
move(x, y, width, height) | 一次性设置x、y、宽度和高度。 Sets the x, y, width, and height all at once. |
setFrame(x, y, width, height) | 指定平铺精灵将使用的图像区域。 Specifies the region of the image that the tiling sprite will use. |
TilingSprite ⇐ PIXI.extras.PictureTilingSprite
Kind: global class
Extends: PIXI.extras.PictureTilingSprite
new TilingSprite(bitmap)
平铺图像的精灵对象。
The sprite object for a tiling image.
Param | Type | Description |
---|---|---|
bitmap | Bitmap | 平铺精灵的图像 The image for the tiling sprite |
initialize(bitmap)
初始化平铺精灵。
Initializes the tiling sprite.
Kind: global function
Param | Type | Description |
---|---|---|
bitmap | Bitmap | 平铺精灵的图像 The image for the tiling sprite |
update()
为每一帧更新平铺精灵。
Updates the tiling sprite for each frame.
Kind: global function
move(x, y, width, height)
一次性设置 x、y、宽度和高度。
Sets the x, y, width, and height all at once.
Kind: global function
Param | Type | Description |
---|---|---|
x | Number | 平铺精灵的 x 坐标 The x coordinate of the tiling sprite |
y | Number | 平铺精灵的 y 坐标 The y coordinate of the tiling sprite |
width | Number | 平铺精灵的宽度 The width of the tiling sprite |
height | Number | 平铺精灵的高度 The height of the tiling sprite |
setFrame(x, y, width, height)
指定平铺精灵将使用的图像区域。
Specifies the region of the image that the tiling sprite will use.
Kind: global function
Param | Type | Description |
---|---|---|
x | Number | 帧的 x 坐标 The x coordinate of the frame |
y | Number | 帧的 y 坐标 The y coordinate of the frame |
width | Number | 帧的宽度 The width of the frame |
height | Number | 帧的高度 The height of the frame |
贡献者
暂无相关贡献者
页面历史
暂无最近变更历史