CPSC 120: Project 2

Due at 4:59 pm on Tuesday, 04/19/2016

Home | Announcements | Assignments | Example Code

Fireworks Extravaganza!

This project draws heavily on the code that we studied in class on Wednesday, April 6. You can download a copy of that code from this link: (LINK).

Create a simulation of a massive fireworks display. This display should launch multiple rockets from the ground, as many as five or six, from any of several randomly chosen locations. The rockets should have randomly chosen upwards trajectories, and each should explode at the very top its arc, with colorful sparks that rain down ad gradually disappear. It should have some variety in the timing of each rocket launch and explosion, and it's fine to limit the maximum number of rockets in the air (unlike, say, the towns of Oban or San Diego).

Meanwhile, the moon displayed in the sky should move across the heavens from left to right. This movement should be very slow! It should take perhaps 2-3 minutes for it to completely disappear off the right side of the screen.

Add other creative elements if you like: stars that also move across the heavens with the moon, a small flock of birds that moves (more rapidly) across the sky, a gradual lightening of the sky as time progresses toward daybreak, etc.

This can be done by managing multiple collections of arrays. Next week, we will also see an approach to organization aggregations of data (such as the multiple components of each fireworks particle), object definitions, which simplifies this process greatly. You can use either approach, though the use of objects is much, much simpler.

Turn In:

Submit the folder containing your Processing sketch. This should be a single folder named "project2", which will contain your fireworks simulation, and any related files. You do not need to submit a paper printout of anything. Again, the turnin directory is

~lasseter/classes/cpsc120/your_name

You may re-submit this work as many times as you like, up to the due date/time. Anything submitted after 4:59 pm on Tuesday 04/19 will be considered late, subject to the usual penalty (10%/day, up to 30%).


Standards

John H. E. Lasseter