Skip to content

Classes

GlobalDescription
TilingSpritePIXI.extras.PictureTilingSprite

Functions

GlobalDescription
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.

ParamTypeDescription
bitmapBitmap平铺精灵的图像 The image for the tiling sprite

initialize(bitmap)

初始化平铺精灵。
Initializes the tiling sprite.

Kind: global function

ParamTypeDescription
bitmapBitmap平铺精灵的图像 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

ParamTypeDescription
xNumber平铺精灵的 x 坐标 The x coordinate of the tiling sprite
yNumber平铺精灵的 y 坐标 The y coordinate of the tiling sprite
widthNumber平铺精灵的宽度 The width of the tiling sprite
heightNumber平铺精灵的高度 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

ParamTypeDescription
xNumber帧的 x 坐标 The x coordinate of the frame
yNumber帧的 y 坐标 The y coordinate of the frame
widthNumber帧的宽度 The width of the frame
heightNumber帧的高度 The height of the frame

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新