Skip to content
ClassTilemaps@public

FlxTilemapRenderHandle ​

Pixi sprite chunks synchronized from one authoritative tilemap.

ts
export declare class FlxTilemapRenderHandle implements FlxRenderHandle

Constructors ​

ts
constructor(owner: FlxTilemap, chunkSizeInTiles?: number)

Constructs a new instance of the FlxTilemapRenderHandle class

ParameterTypeDescription
ownerFlxTilemap-
chunkSizeInTilesnumber-

Properties ​

PropertyModifiersTypeDescription
allocatedChunkCountreadonlynumberNumber of chunks materialized so far.
chunkSizeInTilesreadonlynumber-
destroyedreadonlyboolean-
lastRebuiltChunksreadonlyreadonly string[]Chunk keys rebuilt by the most recent synchronization.
rebuildCountreadonlynumberTotal chunk rebuilds since construction.
viewreadonlyContainer-
visibleChunkCountreadonlynumberNumber of chunks visible in the most recent camera pass.

Methods ​

destroy() ​

ts
destroy(): void

Returns: void

sync() ​

ts
sync(camera?: FlxCamera, interpolationAlpha?: number): void

Parameters:

ParameterTypeDescription
cameraFlxCamera-
interpolationAlphanumber-

Returns: void

Released under the MIT License.