← Teacher guide Markdown for Prepare

Final challenge: Power-ups and your own game: cheat sheet

Arcade advanced skills · Find each block in the MakeCode toolbox (the category is at the end of each line).

start countdown

A timer in seconds at the top of the screen; the game ends when it reaches 0. Info.

info.startCountdown(30)
The block

auto destroy

The sprite is removed once it leaves the screen, so old ones do not pile up. Sprites › set flag.

rock.setFlag(SpriteFlag.AutoDestroy, true)
The block

else if

Another question, asked only if the ones above were false. The first true one wins.

} else if (condition) {
The block