国外10款开源的Html5小游戏

The great thing about HTML5 games is that they run on all modern browsers that include browsers on smartphones such as iPhone, and Windows Phone. Having a look at Open Source HTML5 games is a good way to explore different possibilities and learn how to develop one of your own.

In this post we are going to list 10 Open Source HTML5 games which are inspired from other popular titles and gameplays like Tetris, Pacman, Asteroids and even Flappy Bird. All these games are built with HTML5 and javascript. You can find a link to play these game online along with the source code. We have included a few multi-player HTML5 games too at the end. Have Fun as well as Get Inspired!

1. 2048 Game

在这里插入图片描述
The game that became a craze on almost all platforms, 2048 is open source and available on Github. The 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 a HTML5 clone of the original Pacman game. Developer Dale Harvey has also shared his experience and issues faced while developing this game which you can read here.

Play HTML5 Packman 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

1. 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

2. Shootr

在这里插入图片描述
Shootr is a multiplayer spaceship game developed by N. Taylor Mullen. It is built using SignalR and EndGate

Play Shootr Shootr Source Code

3. 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

A word of caution before you start downloading source code of these Open Source HTML5 games. Please always make sure to read the license associated with the Open Source Project. Just because the source code is open, doesn’t necessarily mean that you can freely use or distribute the code or derivatives of it as your own. Some licenses are open and allow any kind of use however not all are like that. Do let the author know in case you decide to use any of their work as a start for your next project.

Which one of these HTML5 games do you like the most? If you have done any HTML5 game development of your own then do link to them in comments. If not then, we recommend using a HTML5 game framework like Phaser or a HTML5 game development tool such as Construct 2 for you to start developing your own HTML5 games.

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值