Question
In p5.js: Ball Game (5 points) Enhance the paint brush program you developed in the previous homework. The new features should allow a user to
In p5.js: Ball Game (5 points) Enhance the paint brush program you developed in the previous homework. The new features should allow a user to press the 'spacebar' to pause or resume the game; press the 'r' key to restart the game (i.e., move the ball back to the initial location); face the challenge posed by a moving goal (slowly) rather than a stationary goal; face the challenge posed by four randomly placed obstacles. If the ball hit the obstacles, the user loses; Each obstacle has a circle shape and is visually distinct from the goal; see the number of wins and loses.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started