Functions + Game
2/25/21
Three references that helped me with my game
- https://editor.p5js.org/dlobser/sketches/VNqJYG1db (Links to an external site.)
- https://www.anypromo.com/auto/hand-tools/16-flyswatter-p611989?utm_source=google&utm_medium=PLA&g=1&calltrk=1&gl=1&glppc=2&gclid=CjwKCAiA1eKBBhBZEiwAX3gql7N9trG9Dck6Mn-miKTEjT_hJ5Nm4wHIjgOcuEBjoQSraTFpBNObEBoCaYcQAvD_BwE
3. https://sightwords.com/sight-words/games/fly-swat/
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.
https://editor.p5js.org/kensie77/sketches/rkApBv54D
My submission with Codepen wasn't allowing me to add my background image, so here is my p5 link.