A sprite batch that doesn't reset on each frame. Works similar to tile layers (tile / doodad rendering)

Hierarchy

  • PersistantSpriteBatch

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

spriteBatch: default

Accessors

  • get capacity(): number
  • Returns number

Methods

  • Parameters

    • tileX: number
    • tileY: number
    • spriteSize: number
    • sourceX: number
    • sourceY: number
    • sourceSize: number
    • Optional offsetX: number
    • Optional offsetY: number
    • Optional red: number
    • Optional green: number
    • Optional blue: number
    • Optional alpha: number

    Returns undefined | number

  • Returns void

  • Returns void

  • Returns number

  • Parameters

    • index: number

    Returns boolean

  • Parameters

    • x: number
    • y: number
    • tileScale: number
    • viewportWidth: number
    • viewportHeight: number

    Returns void

  • Parameters

    • index: number
    • tileX: number
    • tileY: number
    • spriteSize: number
    • sourceX: number
    • sourceY: number
    • sourceSize: number
    • Optional offsetX: number
    • Optional offsetY: number
    • Optional red: number
    • Optional green: number
    • Optional blue: number
    • Optional alpha: number

    Returns void

Generated using TypeDoc