HTML5 is turning into a great game development platform for past couple of years. HTML5 games can run in all modern browsers and most of the handheld devices. You can run any HTML5 games on your mobile or modern web browsers. There are many open source games that you can find on the internet if you spend some time researching on html5 games.

Open Source HTML5 games will help learn how to develop HTML5 games of your own and improve your skill on use of HTML5.

In this post we have listed 10 best open source html5 games source code with demo links, few of these open source html5 games are multiplayer as well. All these open source HTML5 games are built with HTML5 and javascript and you can download the source code in your computer and get started.

Open Source HTML5 games Source Code

1. 2048 Game

2048 open source html5 game

The game that became a craze on almost all platforms, 2048 is open source and available on Github. This HTML5 game is developed by Gabriele Cirulli and is actually a clone of other similar type games. But that didn’t stop it from becoming a success on app stores and many developers finding it easier to clone and publish it in various forms. The gameplay is quite simple where you have to slide tiles of different numbers forming a bigger number until you reach the number 2048.

Play 2048 Game /2048 Game Source Code

2. Clumsy Bird


Remember Flappy Bird? The game that took the app stores by storm and made everyone wonder how can such a simple yet hard to play game be so addictive? Well, now you can find the source code of its clone made in HTML5 and called Clumsy Bird. This game is developed by Ellison Leão and he has made an easy customizing guide also available for his game, in case you get inspired to clone this clone.

Play Clumsy Bird /Clumsy Bird Source Code

3. Hextris


Hextris is a fast paced puzzle game developed by Garrett Finucane and Logan Engstrom. As the name suggests, this game is like playing Tetris on a Hexagonal plane. Apart from playing this game online, you can also find it in Android and iOS store.

Play Hextris /Hextris Source Code

4. HTML5 Pacman


This an HTML5 clone of the original Pacman game. Developer Dale Harvey has also shared his experience and issues faced while developing this game.

HTML5 Packman Source Code

5. Astray


Astray is a WebGL maze game built with Three.js and Box2dWeb. Developed by Rye Terrell, this game is a nice demo of 3D capabilities in HTML5 games. If you want an even richer experience of a 3D HTML5 game, you can look forward to Assasin Creed Pirates.

Play Astray /Astray Source Code

6. Canvas Tetris


You can easily guess that Canvas Tetris is a clone of Tetris and implemented in HTML5 canvas. This game was developed by Dionysis Zindros in just 45 minutes.

Play Canvas Tetris / Canvas Tetris Source Code

7. Agent 8 ball


Agent 8 ball is a fun HTML5 pool game with bombs. Developed by Pixel Lab, Agent 8 ball is quite a polished game.

Play Agent 8 ball / Agent 8 ball Source Code

Multi-Player Open Source HTML5 Games

8. mk.js


mk.js is a simple Mortal Kombat clone created with HTML5 canvas and JavaScript by Minko Gechev. It allows 2 players on single computer as well as playing over the network (requires installing a server).

Play mk.js / mk.js Source Code

9. Shootr


Shootr is a multiplayer spaceship game developed by N. Taylor Mullen. It is built using SignalR and EndGate

Play Shootr / Shootr Source Code 

10. Browser Quest


BrowserQuest by Mozilla Foundation is a tribute to classic video-games with a multiplayer twist. It is a role playing multiplayer adventure game powered by HTML5 and Web Sockets.

Play Browser Quest / Browser Quest Source Code