Assignment 6: OOPS and Arrays
- Kiya Brown
- Apr 5, 2021
- 1 min read
For this week's project, my group and I created a night sky/solar system that includes floating planets every time the user clicks. We used a class to create the stars as well as an array so we could have them spanning across the entire sky with all different sizes of stars. We attempted to create the appearance of "twinkling" stars as well. To add to the narrative of a solar system/outer space, we decided to add planets as well. Alexandra then created a class for the Planets that created a planet with varying size, location, and velocity at which it moved. We then made use of the mousePressed function to create a new planet wherever the user clicked their mouse on the screen.
For me personally, this project was both challenging and fun. I knew creating something like a starry sky or rain/snow would be a good use of an array, and it was a lot of fun getting to play around with it to make it resemble stars as much as I could. To get them to "twinkle" was difficult, and although it doesn't look exactly as I envisioned it, I think it gets the point across.
Working with Jack and Alexandra was very helpful and we each got to use our strengths to create a cohesive design.
Comments