Constructors

Properties

Accessors

Methods

Constructors

Properties

index: number = 0

The index of the sprite to be rendered in the currently assigned sprite sheet

spriteSheet?: SpriteSheet

The spritesheet holds all sprites that can be rendered by the sprite renderer

Accessors

  • get sprite(): undefined | Sprite
  • The currently active sprite

    Returns undefined | Sprite

  • set sprite(sprite): void
  • Set the sprite to be rendered in the currently assigned sprite sheet at the currently active index index

    Parameters

    Returns void

Methods

  • Parameters

    Returns void