May 17, 2022

10 Classic Games Recreated in JavaScript

By Jscrambler | 4 min read


Are you a gamer? Are you a child of the 80s and 90s? If the answer to these two questions is yes, this might be the best post you see today. Those classic games you played in the arcade with your friends or relatives at every family get-together aren’t gone forever.

Designers and developers keep recreating the simplicity of those vintage video games we all love so much, using HTML5, CSS, and JavaScript.

Rediscover the joy of childhood and recreate great moments with this list of classic games that you can play on your browser any time you want, thanks to open-source contributors!

10 (ready to be played) classic games recreated on JavaScript

1. Pac-Man

Starting with a generational icon, Pacman was first introduced in 1980. A game developed for arcades, it consists of a little yellow-faced Pac-Man that must eat all the dots in a maze, while avoiding the ghosts that appear occasionally.

GitHub repository

Play here

2. Minesweeper

This single-player puzzle video game was released in 1989, but the original concept is from the 1960s. It has been written and developed for different systems multiple times, but it’s better known for its Microsoft Windows release. The game was part of the standard installation of Windows until Windows Vista in 2007.

GitHub repository

Play here

3. Mortal Kombat

Mortal Kombat is actually a franchise, now turned into movies as well. The original game, released in 1992, was the first fighting game to introduce a “secret fighter”, a feature that demanded that the player fulfilled a set of requirements.

GitHub repository

Play here

4. Sonic the Hedgehog

There is no denying that Sonic, the blue hedgehog created by Sega, is extremely popular, as another video game turned into a pop culture franchise. The first game of Sonic the Hedgehog was released in 1991, to compete with Nintendo’s Super Mario Bros.

GitHub repository

Play here

5. Super Mario Bros

The super popular Nintendo platform game was first released in 1983. Mario has to save the Princess while collecting mushrooms and avoiding turtles and carnivore flowers. It’s probably one of the most adapted games, and you can also play it in its JavaScript version.

GitHub repository

Play here

6. Pong

This table tennis arcade game was firstly released in 1972, by Atari. It is considered to be the first commercially successful video game in history and its cultural impact is one of the biggest reasons why so many developers spent time recreating it in several languages, including JavaScript.

GitHub repository

7. Enduro

Enduro is a racing game, originally developed and released in 1983. The goal of this game is to complete an endurance car race that is continuous. Fans of this vintage game can revisit it now.

GitHub repository

Play here

8. Asteroids

A truly vintage space-themes game, released in 1979 by Atari. In this game, the player controls a spaceship in an asteroid field and the goal is to shoot asteroids and avoid obstacles.

GitHub repository

Play here

9. Snake

This game is a true callback to nostalgia for everyone who owned an old-school Nokia cellphone. This is a great opportunity to revisit the addictive ever-growing snake once again.

Creator repository

Play here

10. SimCity

The first version of SimCity was released in 1989. This game is all about real-time management and construction simulators, a true classic that is also the origin of the famous The Sims franchise.

GitHub repository


JavaScript is a part of our everyday web activities and one of the most fun ways to practice and master it is by trying to recreate classic videogames. If you too dabble in JavaScript and game development, you need to be aware that there are security concerns that every web app needs to consider.

There are several ways to protect your code, by avoiding situations like cheating or intellectual property theft. With Jscrambler, you can protect your game by:

1. Keep the intellectual property and proprietary algorithms safe from competitors and attackers who try to steal and re-distribute them. Your game may be vulnerable to threats like IP theft, reverse engineering, etc;

2. Prevent cheating and protect anti-cheating JavaScript agents;

3. Prevent piracy and licensing violations, making sure that users cannot bypass account restrictions.

Jscrambler can definitely help you protect your code, with a free trial. Consider also subscribing to our own newsletter to receive 1-2 high-quality tutorials every week and the occasional post about application security.

JscramblerThe leader in client-side Web security. With Jscrambler, JavaScript applications become self-defensive and capable of detecting and blocking client-side attacks like Magecart.
View All Posts

Subscribe to our weekly newsletter

Learn more about new security threats and technologies.

I agree to receive these emails and accept the Privacy Policy.
Projeto Co-Financiado por (Mais info)Norte 2020, Portugal 2020, FEDR