
The game will contain two different classes, one to represent a player object, and another to represent the ball object. The first player should be controlled by the keyboard and the second player by the computer.A player gets a point whenever the ball moves out of the screen on the opposite side.The ball object’s position and direction should be reset if it moves out of the screen on the x-axis.The ball object should change its direction on the y axis to the opposite if it moves out of the screen on the y-axis.The ball object should change its direction on the x-axis to the opposite if it overlaps with a player object.The ball object should be able to move on the x-, and y-axis.The player object should only be able to move on the y-axis.The game should contain two text elements showing each player’s score.The ball object should be represented by a circle.

The player object should be represented by a rectangle.The second part describes the functional requirements of how the different objects and the application should behave. The first part describes the visual requirements related to representing the players, ball, and environment. The requirements of the game are presented in two different parts. Processing provides a graphical library and an integrated development environment (IDE) and it uses the programming language Java (Wikipedia, 2022a). To download Processing go to /download and choose the version matching the preferred platform. I have also written another article on how to recreate the classic snake game if you want to create another game. You find all the necessary file like images, QuizApplication.java, Question.txt in here.A GIF showing the Ping-pong game from this article.Īre you looking for a tutorial explaining how to recreate the classic Ping-pong game? Then, look no further, this article focuses on recreating the game using the Processing library and Java. One frame show your answer is correct or not and another frame is showing * and two new frame is created instantly. * Then after all if you click on the question option button then question frame and help frame is currently dispose * take a 50-50 chance you need to click 50-50 button * You can change the question clicking by change question button, pass question by clicking pass question button and to

* Change Question, Pass Question and 50-50 Chance option First panel show a message and the 2nd panel take take 3 button with option * Each Question frame is divided by 3 JPanel.

* One of the frame is Question frame and other frame is help frame. * If you select the 10-Q(Easy) Button then the current frame is disable and two new frame is created * This Quiz game has three stages 1-> 10 Question(Easy) 2-> 20 Question(Medium) 3-> 30 Question(Hard) * This is simple Java Swing GUI based Quiz Application program.
