For this assignment, we were asked to experiment with different Processing libraries.
I downloaded the OpenCV library and demo files for a bubble popping game.
How the bubble game works:
- When you run the program, Processing fills the background of
the window with an image from your computer’s camera - Bubbles fall continuously from the top of the screen
- If the program detects more than 5px of movement in the camera
image, the bubble in closest proximity to the movement will pop - A counter tallies the number of bubbles that are popped
My modifications to the game:
- I replaced the bubble image with an image of a spider
- I removed the code that tells the program to continuously add
the array of images (so there’s just one spider image) - I changed the code so that instead of removing the spider when
motion is detected, it reverse the motion of the spider image
(it retracts toward the top of the screen) - I removed the counter