In implementing the application、Combining HTML and JavaScript、Tennis game created.
Below is the actual program.
In this application.、The up, down, left, and right keys operate the paddles and、The ball bounces back. When the ball hits the edge of the screen, it bounces back、When it hits the paddle, it bounces back again. You can even control it with your phone.、Paddles are placed at the bottom of the screen and、We restrict them so that they do not appear on the left or right edge. I dont use any particular pictograms.、The background color and ball color are changed for easy viewing.