5f7a8e5301
* update yotta defaults for 16kb devices * refactor deprecated blocks * updates for button events * update button events * update refference * update docs * update docs * update button event blocks * update docs * update block id
618 B
618 B
Start Countdown
Start counting down time from the number of milliseconds you say.
game.startCountdown(1000)
Parameters
ms
is a number that says how many milliseconds to count down (one second is 1000 milliseconds)
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.onButtonEvent(Button.A, input.buttonEventClick(), () => {
game.addScore(1)
})
game.startCountdown(10000)