I used the mouse to make a game of whacking. When you click on the target (Gopher), you will score. Your score will be displayed on the screen.
https://editor.p5js.org/SiqiCheng/present/eGQinJiJy <iframe src="https://editor.p5js.org/SiqiCheng/embed/eGQinJiJy"></iframe>