Functions + Game
Three references that helped me with my game
- https://editor.p5js.org/dlobser/sketches/VNqJYG1db (Links to an external site.)
I first picked an image for the background. I liked this grassy and sun image because you would be likely to find a fly there. Then I started to create my swatter with a grid. Then I referenced the faces from David’s lecture and created a bug instead of a face. I then wanted the swatter to be controlled by the mouse and the fly to randomly go around. Lastly every time the swatter made contact with the fly, the score went up.
My submission with Codepen wasn't allowing me to add my background image, so here is my p5 link.