StartCountdownRun
Since 0.7
The 3-2-1-GO!
controller startCountdown hands back.
Signature
export class StartCountdownRun {
constructor(ctx: Ctx<any, any>, options: StartCountdownOptions = {})
get phase(): CountdownPhase
get started(): boolean
get holding(): boolean
start(): void
update(dt: number): void
}
Import: import { StartCountdownRun } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
constructor | constructor(ctx: Ctx<any, any>, options: StartCountdownOptions = {}) | A countdown for the behaviour that owns ctx, idle until start(); startCountdown(ctx, options) is the same. |
phase | get phase(): CountdownPhase | What it shows now. |
started | get started(): boolean | The start event has fired. |
holding | get holding(): boolean | The input context is held until GO!. |
start | start(): void | Begin (or restart) the count from the first figure, shown at once. |
update | update(dt: number): void | One tick. Before start() and after the end it does nothing. |