Javascript

10 Classic Games Recreated in JavaScript

May 17th, 2022 | By Jscrambler | 4 min read

Classic games still provoke happy memories in fans, especially these ten classic games, now recreated in JavaScript.

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 for you. 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 love so much using HTML5, CSS, and JavaScript.

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

10 (ready-to-play) 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 occasionally appear.

Explore more in the GitHub repository with all the content of this old classic, rewritten in HTML5.

To have fun, play Pac-Man in your browser.

first classic game recreated in JavaScript-pac-man

2. Minesweeper

This single-player puzzle video game was released in 1989, but the original concept dates 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.

The instructions for Minesweeper are available in the GitHub repository.

You can also play Minesweeper.

3. Mortal Kombat

Mortal Kombat is 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.

This classic game recreated in JavaScript has three game modes, available in the GitHub repository.

You can also play Mortal Kombat right now!

classic game recreated in JavaScript-mortal-kombat

4. Sonic the Hedgehog

There is no denying that Sonic, the blue hedgehog created by Sega, is extremely popular as another video game turned pop culture franchise.

The first game of Sonic the Hedgehog was released in 1991 to compete with Nintendo’s Super Mario Bros.

A GitHub repository about the Hedgehog in JavaScript is available. If you prefer, you can play Sonic the Hedgehog recreated.

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 carnivorous flowers. It’s probably one of the most adapted games, and you can also play it in its JavaScript version.

Explore the GitHub repository for Super Mario Bros. level 1 in JavaScript using HTML5 Canvas.

classic game recreated in JavaScript-super-mario-bros

6. Pong

Atari developed this table tennis arcade game in 1972.

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 for the basic Pong HTML and JavaScript game.

7. Enduro

Enduro is a racing game that was originally developed and released in 1983.

The goal of this game is to complete a continuous endurance car race. Fans of this vintage game can revisit it and play Enduro now.

See the GitHub repository for the classic Atari race game remake.

classic game recreated in JavaScript-enduro

8. Asteroids

A vintage space-themed 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.

Dive into the GitHub repository for pure Javascript Asteroids.

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.

To build Snake with JavaScript, the Mitchum blog has a creator repository.

game recreated in JavaScript-snake

10. SimCity

The first version of SimCity was released in 1989.

This game is all about real-time management and construction simulators. It is a true classic that is also the origin of the famous The Sims franchise.

See more about the remake of SimCity in the GitHub repository.

Conclusion


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 video games.

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 gaming application 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.

Jscrambler

The 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 Articles

Must read next

Javascript

12 Useful JavaScript Newsletters

With so much happening in the JS ecosystem, it's not easy to stay on top of things. Here are 12 newsletters to bring the best news straight to your inbox.

February 10, 2022 | By Jscrambler | 5 min read

Javascript

15 Best Blogs To Follow About JavaScript

Here goes a list with 15 blogs about Javascript you should start following to become a master.

June 9, 2016 | By Jscrambler | 4 min read

Section Divider

Subscribe to Our Newsletter