It's time to add the iconic ending where Mario latches onto a flagpole and slides down. Here we're going to utilize rectangular collision detection, user input toggles, and an animation package called GSAP to get the effect we're going for.
If you need a little extra help with GSAP, be sure to check out their docs with the following links: