Class Timer

Represents a timer used in a game.

Constructors

Properties

game: Game

The game object.

time?: number

The time value for the timer.

ts?: number

The initial time value for the timer.

Methods

  • Gets the percentage of time remaining for the timer.

    Returns number

    The percentage value between 0 and 100.