I cleaned up the game play on my Smash the Pumpkin Halloween midterm game. Now, the array of pumpkins never gets larger than 200. This way the smashed pumpkins are still in rotation. This makes the game harder but also fixes the overloading array issue. Before the game would eventually slow down because the array was being pushed to forever. Now the game runs smoother and is more enjoyable.
I achieved this through two pieces of code. First, I limited the array size seen here.

I also needed to recycle the pumpkins back to the bottom after they reach the top.

Below is the game play for the cleaned up version!
Below is my final source code for the whole project.

Looking back on my first blog post I can say that I have come a long way in solidifying my understanding of basic coding concepts. While I used to do some C# coding in unity a few years back, I figured out that I really needed to reinforce more of the basics than I had expected. This has helped me conceptualize and think about future projects, now having the base understanding. In my first blog post I also expressed a desire to learn more about the internet of things and incorporating more into my code. This was achieved through serial communication and seeing my 10print design changing with a potentiometer. That was an extremely gratifying experience and I hope to only build and bridge my skills and classes more.
The landscape of code is vast, and I believe that there are harmful elements. Although coding itself is not to be blamed. I think back to Ken Perlin’s discussion in our Applications course where he talked about human nature being the cause for how bad systems can be in place. The technology is just a tool and not inherently bad, although unfortunately used in harmful ways. And just like any other tool it can also help me be more creative. I find it is very helpful to bring my artistic sensibilities to different platforms as well. This includes P5 sketches, installations, interactive art, etc. I am excited for the future and all of the projects to come.