start Countdown

Start the countdown timer for the amount of gameplay time. The current game lasts for this amount of time.

10start countdown(s)
JavaScript
function info.startCountdown(duration: number): void;
Python
def info.start_countdown(duration: number): None

The game time is set as a number of seconds. When the game time finishes, a game over notification happens and the current game ends.

Parameters

  • duration: the number seconds to play the game for.

Example

Set the game time to 30 seconds.

30start countdown(s)on start

See also

set score, stop countdown, on countdown end