A firework simulation on python using pygame. The concepts presented here are explained in more detail in my pygame basics playlist.
Feel free to ask questions in the comments or email me at [email protected].
Finished Codes
https://github.com/EarOfCornProgramming
Documentation for Pygame
https://www.pygame.org/docs/
After completion of the video, I recognized that I completely forgot to simulate gravity! That’s the difference between the simulation in the beginning of the video and the finish product. Leaving it as an exercise for the viewer; how could we simulate gravity in this simulation? (Hint: it would only take one line of code)