This project is a table tennis game played against CP. You are the racket in front. The racket moves with the mouse. Hit the ball back at your opponent. When the ball is in contact with the racket, move the racket forward to increase the speed of movement. Be careful not to hit it too hard, as it won't go in. To add spin, move the ball left or right while it's still in contact with the racket to add sidespin. If you put too much spin on the ball, your opponent may not be able to catch it. Your opponent is the world champion. Can you win? When serving, you don't need to hit the ball into your own court. (Hitting the ball into your own court will result in a miss.) To check other players' records, press the cloud variable button below. The final score will be displayed. The initial letter of the cloud variable represents the winner. 1 means you win, 0 means CP wins. The second and subsequent letters indicate points. This game is won by the first player to reach 11 points. If you reach 11 points first, you win! If you are defeated, you lose.
The illustrations of the two rackets are from https://illustcenter.com, and the illustration for the ping-pong table is from illpop.com. The illustrations for the numbers are from https://nureyon.com.