Practice 3.5: Snowfall
Make a program that uses an array of objects to make animated snowfall
Your program must use an array of objects to display snow falling.
STEP BY STEP
Part A - Simple Snowflake Class
Right click on the triangle next to the tabs to make a new tab.
Your project isn't ready to run yet! Let's add some basic code to main to get it started.
Part B - A Single Snowflake
Your program should show a blue background. Make sure the array is both declared and initialized!
This seems like a lot of work to just get a single ellipse! I know! But trust me, the magic is about to happen.
We're going to change it to use an Array and then we'll add in some movement. Be patient.
Part C - Using An Array of Objects
Now we are showing 500 snowflakes. They're not moving yet. We're going to add that in with the next step.
Since we're using a class, we can have them be different in many ways - they won't just move vertically like we did in the Bubbles project.
Part C - Simple Movement
Your bubbles should be moving downward and wrapping. They may be moving sideways too!
Part D - More Data!
Snowflakes should move downward and to the right or left at different speeds. Every snowflake should be a different size.