Question: Using the code from BallPane.java and BounceBallControl.java (chapter 15), create a Pong for One game - a rectangular paddle moves back and forth via mouse
Using the code from BallPane.java and BounceBallControl.java (chapter 15), create a "Pong for One" game - a rectangular paddle moves back and forth via mouse drag along the bottom of the pane; the bottom of the paddle should be about 1/2 the diameter of the ball off the bottom. If the ball connects with the paddle, then it bounces at a 90 degree angle back into the pane space . If the ball misses the paddle, then the score is decremented by 1. The game ends when 20 points are lost.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
