Start Countdown

Start counting down time from the number of milliseconds you say.

game.startCountdown(1000)

Parameters

Examples

This program is a simple game. Press button A as much as possible. At the end of 10 seconds, the program will show your score.

input.onButtonPressed(Button.A, () => {
    game.addScore(1)
})
game.startCountdown(10000)

See Also

score, change score by

Edit this page on GitHub