This week I set out to make a Halloween themed game. While it still needs a lot of work, I’m happy with my use of classes and am excited to build upon that. It is a very simple smash the pumpkin game, where there is a particle system creating an array of pumpkins. They are randomized and generate from the bottom of the screen upwards. The cursor is turned into a hammer, and when you smash a pumpkin the image updates to a smashed pumpkin. Also once you hit 50 smashed pumpkins, they shrink to half the size. I need to find a way to update my distance function for when the shrinking happens. I was having trouble getting it to update without throwing the program into some kind of infinite loop.
Here are some photos of the game in addition to the main source code.