STEP 2: Each firework will have an amount of "spokes" (or lines of particles), and a speed that all the particles move.

  • In the toolkit to the left, click LOGIC. Then click and drag out Integer Variable.
  • Change my_var to amount and 25 to 10. Each firework will be made out of 10 lines of particles!
  • Drag out another Integer Variable. Change my_var to speed and 25 to 5.
  • You won't see anything on the stage yet - but these numbers are important for creating the fireworks.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background_color("black")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)