This video recommends brushing up on some circular geometry topics. You can learn about them, in-depth, with my video on circular motion here: https://chriscourses.com/courses/canvas-physics/videos/circular-motion
The end of classic Mario games contain a celebration laden with fireworks as you complete a course and slide down the iconic flagpole. Here we'll learn how to create our own dynamic fireworks using our particle class and make sure they occur in exactly the right spots whenever we complete our game.
Here's a step-by-step checklist you can use to help develop this feature:
When Mario is at bottom of flagpole, determine firework count
Create for loop
Push new particles positioned in center of screen
Add red color to particles to start
Add randomized velocities
Code velocities so they expand in circular fashion
Randomize colors
Fade particles
Iterate through
setInterval
to create three burstsClear interval