Since I have already created artwork in OOP for the last assignment, I decided to modify my artwork so that it is more user-interactive. I modified the random spawn of the splashes into click-to-splash. This gives a visual feedback to users clicking the screen.
This is implemented by using the mousePressed() function. This function adds an extra object to my object array whenever the mouse is pressed.
Click the screen below
After checking that the OOP implementation is working properly, I decided to apply the same method to a very game-like work. In this work, made in a first-person shooter game theme, the bullets are implemented in object-oriented programming using an array.
Click to shoot, move your mouse to change the direction