This is a remake of Atari's first game, made in 1972, which was one of the main drivers of the birth of the video game industry as we know it.

You'd see this if you were playing in 1972
Since I wanted to learn more about the Javascript programming language and frontend in general, I decided to go beyond Hello World and remake this classic in modern HTML5/CSS3 and Javascript. After all, if Allan Alcorn, almost 40 years ago and freshly graduated in the same degree I'm studying now, could build this game in 3 months with chips programmed at the transistor level and a lot of soldering, I can do it in the comfort of a computer millions of times more powerful, with Google to help me.
When the game came out, it needed a whole set of equipment and a digital circuit made specifically to run it. Later, it moved on to several generations of home consoles, and finally to the PC. Many versions were made, a lot of them in Flash, but few with a modern implementation.
For this first game, I based myself on this Udemy course, but went further and made it responsive, so it can be played not only on computers, but also on tablets and smartphones (or any device with a touch screen that can open this page).
If you'd like to download the game's files to understand how I made it or to play around with the code, visit my games repository on GitHub.
Current version: 2.1.0 - 06/15/2020
Soccer mode added!
Previous versions:
- 2.0.1 - 06/14/2020 - Fixed a bug where the ball got stuck on the sides.
- 2.0.0 - 06/12/2020 - Tennis mode added, and the game's internal logic rebuilt and improved. The game now also has a start screen that works as a demo of the game.
- 1.0.0 - 05/21/2020 - Game released! Tennis and soccer game modes still being built.
Choose a game mode:
This is the classic game of Pong (for 1 player), in which you control the left paddle.
Instructions
- You must keep the ball from hitting your side wall. If it does, your opponent scores a point, and vice versa.
- When the maximum score of 5 points is passed (it can be changed in the settings below the game), whoever has the highest score wins.
- There are 3 difficulty levels (which can also be changed in the settings below the game), and each one changes the size of your paddle relative to your opponent's.
- To make the game more challenging, the ball gets faster and faster over time.
Controls
If you're using a mouse, use the cursor to move the paddle; if you're on a touch screen, use your finger. The paddle follows your cursor/finger as long as you move it inside the game area (inside the white border). I recommend playing in fullscreen by clicking/tapping the button with that name.
Have fun! ;)
This is the tennis version of Pong (for 1 player), in which you control the two left paddles.
Instructions
- You must keep the ball from hitting your side wall. If it does, your opponent scores a point, and vice versa.
- If the ball hits your front paddle while heading toward your opponent, it changes its course, but not its horizontal direction; that only happens when it hits an opponent's paddle. The same goes for the other team.
- When the maximum score of 5 points is passed (it can be changed in the settings below the game), whoever has the highest score wins.
- There are 3 difficulty levels (which can also be changed in the settings below the game), and each one changes the size of your paddle relative to your opponent's.
- To make the game more challenging, the ball gets faster and faster over time.
Controls
If you're using a mouse, use the cursor to move the back paddle; if you're on a touch screen, use your finger. The back paddle follows your cursor/finger, while the front paddle mirrors its movement vertically. For your move to count, you must move the cursor/finger inside the game area (inside the white border). I recommend playing in fullscreen by clicking/tapping the button with that name.
Have fun! ;)
This is the soccer version of Pong (for 1 player), in which you control the white team.
Instructions
- You must keep the ball out of your goal. In this game mode, the goal is marked by the goal area. If the ball gets in, your opponent scores a point, and vice versa.
- If the ball hits a player of your team while heading toward your opponent's goal, it changes its course, but not its horizontal direction; that only happens when it hits an opponent's player. The same goes for the other team.
- When the maximum score of 5 points is passed (it can be changed in the settings below the game), whoever has the highest score wins.
- There are 3 difficulty levels (which can also be changed in the settings below the game), and each one changes the size of your players relative to your opponent's, as well as how far the computer's players can move.
- To make the game more challenging, the ball gets faster and faster over time.
Controls
If you're using a mouse, use the cursor to move the goalkeeper; if you're on a touch screen, use your finger. All your players follow your cursor/finger. For your move to count, you must move the cursor/finger inside the game area (inside the white border). I recommend playing in fullscreen by clicking/tapping the button with that name.
Have fun! ;)
Note: on touch screens, you'll need to go fullscreen to play.
Settings
Maximum score:
Difficulty: