18.4-5 Rocket launch
basic.showNumber(3, 500)
basic.showNumber(2, 500)
basic.showNumber(1, 500)
basic.showNumber(0, 500)
basic.showLeds(`
. . # . .
. # # # .
. # # # .
. . # . .
. # . # .
`)
basic.showLeds(`
. # # # .
. # # # .
. . # . .
. # . # .
. . . . .
`)
basic.showLeds(`
. # # # .
. . # . .
. # . # .
. . . . .
. . . . .
`)
basic.showLeds(`
. . # . .
. # . # .
. . . . .
. . . . .
. . . . .
`)
basic.showLeds(`
. # . # .
. . . . .
. . . . .
. . . . .
. . . . .
`)
basic.showLeds(`
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
`)
Task @showdialog
Launch a rocket on the LED matrix. You have to think in single frames like a professional animator.
Create symbol
Use the ||basic.show LEDs||
block to display a rocket.
Create animation
Create single frames of the animation. Duplicate the ||basic.show LEDs||
block and move the pixel rows from bottom to top, one row at a time.
Countdown
Display a countdown of 3-2-1-0 before the rocket animation. Use the ||basic.show number||
block.
Done! 👍
Click on |Download|
to transfer your program to your Calliope mini.
//