Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

Creates a DuckEngine AnimationFrame

description

The AnimationFrame Class. Holds information about what col and row to use for the Animation

since

2.0.0

Hierarchy

  • AnimationFrame

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

col

col: number
memberof

AnimationFrame

description

The column of the AnimationFrame, sets the Sprite.currentCol to this when played

since

2.0.0

row

row: number
memberof

AnimationFrame

description

The row of the AnimationFrame, sets the Sprite.currentRow to this when played

since

2.0.0

sprite

sprite: Sprite
memberof

AnimationFrame

description

The Sprite to modify the currentCol and currentRow of

since

2.0.0

Methods

set

  • set(): void
  • memberof

    AnimationFrame

    description

    Sets the Sprite.currentCol to AnimationFrame.col and Sprite.currentRow to AnimationFrame.row

    since

    2.0.0

    Returns void

Generated using TypeDoc