For my code game I created a ball chase using variables ballx, bally, ballsize, distance, and score to make an interactive code where the ellipse will randomly move to another location in canvas after being touched by the mouse while also decreasing in size every time it is touched to increase the difficulty. I based my game off of code I found in the link below. The original code was divided into 3 levels so I changed it into into one 20 point level where the the decrease in ball size happens 20 times until reaching the last one with your mouse becomes extremely difficult.

--

--