Html 构建一个简单的 HTML5/canvas 2D 游戏。游戏引擎推荐使用?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10765873/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 00:40:06  来源:igfitidea点击:

Build a simple HTML5/canvas 2D game. Game engine recommended to use?

html2dgame-engine

提问by pimpampoum

I want to start learning HTML5 with canvas by building a simple 2d game. I want to build one that looks like this one: http://www.youtube.com/watch?v=h4SgiVCPfPk

我想通过构建一个简单的 2d 游戏开始使用画布学习 HTML5。我想建立一个看起来像这样的:http: //www.youtube.com/watch?v=h4SgiVCPfPk

Do you recommend any framework or game engine I could use to do this?

您是否推荐我可以用来执行此操作的任何框架或游戏引擎?

采纳答案by Neil

I would recommend using EaselJsfor a 2D game using canvas. You will find some great examples on the site, and a pretty decent documented api to get you going.

我建议将EaselJs用于使用画布的 2D 游戏。你会在网站上找到一些很好的例子,以及一个相当不错的文档化 api 来帮助你前进。

回答by Biped

I'll offer you an alternative in the form of MelonJSWhich has some excellent documentation and very easy to get up and running.

我将以MelonJS的形式为您提供一个替代方案,它有一些优秀的文档并且很容易启动和运行。

回答by Francesco Casula

I would recommend CAAT → http://labs.hyperandroid.com/static/caat/

我会推荐 CAAT → http://labs.hyperandroid.com/static/caat/

Here a tech demo (canvas): http://labs.hyperandroid.com/static/caat/sumon/canvas/Sumon.html

这里有一个技术演示(画布):http: //labs.hyperandroid.com/static/caat/sumon/canvas/Sumon.html

It's easy to use and powerful, it has a good documentation and a lot of official tutorials. If you are interested to publish your game on the mobile devices, it is the first supported engine by the Ludei.com team - http://ludei.com/tech/cocoonjs

它易于使用且功能强大,它有很好的文档和大量的官方教程。如果您有兴趣在移动设备上发布您的游戏,它是 Ludei.com 团队支持的第一个引擎 - http://ludei.com/tech/cocoonjs

回答by andrewrk

You can try chem.

你可以试试chem

It's optimized for rapid development so it's perfect for a little game prototype idea.

它针对快速开发进行了优化,因此非常适合小游戏原型的想法。

回答by Martin Drapeau

For developers familiar with Backbone, you can try Backbone Game Engine. Built to work on the Web, and in CocoonJS. Super Mario Bros level 1-1 was written as a demonstration.

对于熟悉 Backbone 的开发者,可以试试Backbone Game Engine。专为在 Web 和 CocoonJS 中工作而构建。超级马里奥兄弟 1-1 级是作为演示编写的。