Functions + Game

For this assignment I made my own version of a game called cookie clicker.

I created a function that would add to the overall score every time the mouse was clicked. I restricted the function to only happen when the mouse was clicked over the cookie. I really tried to add other elements to the game, but failed.

These are 3 cookies I used to help design my cookie.

I really wanted to do something more complex for this assignment, but kept ruining the whole project when I tried to add something.