Link Search Menu Expand Document

Sprite_Animation.d overview


Table of contents


utils

Sprite_Animation (class)

// Sprite_Animation // // The sprite for displaying an animation.

Signature

export declare class Sprite_Animation {
  constructor()
}

initMembers (method)

Signature

initMembers(): void

destroy (method)

Signature

destroy(options?: PIXIDestroyOptions): void

setup (method)

Signature

setup(
    targets: Sprite[],
    animation: DataAnimation,
    mirror: boolean,
    delay: number,
    previous: Sprite_Animation | null
  ): void

update (method)

Signature

update(): void

canStart (method)

Signature

canStart(): boolean

shouldWaitForPrevious (method)

Signature

shouldWaitForPrevious(): boolean

updateEffectGeometry (method)

Signature

updateEffectGeometry(): void

updateMain (method)

Signature

updateMain(): void

processSoundTimings (method)

Signature

processSoundTimings(): void

processFlashTimings (method)

Signature

processFlashTimings(): void

checkEnd (method)

Signature

checkEnd(): void

updateFlash (method)

Signature

updateFlash(): void

isPlaying (method)

Signature

isPlaying(): boolean

setRotation (method)

Signature

setRotation(x: number, y: number, z: number): void

_render (method)

Signature

_render(renderer: PIXI.Renderer): void

setProjectionMatrix (method)

Signature

setProjectionMatrix(renderer: PIXI.Renderer): void

setCameraMatrix (method)

Signature

setCameraMatrix(_renderer: PIXI.Renderer): void

setViewport (method)

Signature

setViewport(renderer: PIXI.Renderer): void

targetPosition (method)

Signature

targetPosition(renderer: PIXI.Renderer): Point

targetSpritePosition (method)

Signature

targetSpritePosition(sprite: Sprite): PIXI.Point

resetViewport (method)

Signature

resetViewport(renderer: PIXI.Renderer): void

onBeforeRender (method)

Signature

onBeforeRender(renderer: PIXI.Renderer): void

onAfterRender (method)

Signature

onAfterRender(renderer: PIXI.Renderer): void

_targets (property)

Signature

_targets: Sprite < Bitmap > []

_animation (property)

Signature

_animation: DataAnimation

_mirror (property)

Signature

_mirror: boolean

_delay (property)

Signature

_delay: number

_previous (property)

Signature

_previous: Sprite_Animation | null

_effect (property)

Signature

_effect: any

_handle (property)

Signature

_handle: any

_playing (property)

Signature

_playing: boolean

_started (property)

Signature

_started: boolean

_frameIndex (property)

Signature

_frameIndex: number

_maxTimingFrames (property)

Signature

_maxTimingFrames: number

_flashColor (property)

Signature

_flashColor: [number, number, number, number]

_flashDuration (property)

Signature

_flashDuration: number

_viewportSize (property)

Signature

_viewportSize: number

targetObjects (property)

Signature

targetObjects: AnimationTarget[] | undefined