2D引擎为Javascript [英] 2D Engines for Javascript

查看:185
本文介绍了2D引擎为Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在JavaScript来构建一个基于区块的游戏,使用HTML5画布。有-many-发动机可供选择,如;

I'm attempting to build a tile-based game in javascript, using HTML5 canvas. There are -many- engines to choose from, such as;

  • JawsJS
  • GameJS
  • Cocos2D
  • MelonJS
  • CraftyJS
  • ImpactJS (commercial)

......这样的例子不胜枚举和。

... and the list goes on and on.

但是,似乎没有为一个事实上的所有这些不同的实现之间的标准。基本上我要寻找的JavaScript游戏引擎的jQuery的。一说是由一个(大)社区的支持下,具有优秀的文档,并积极维护。大多数这些只是看起来像一个人的项目给我。

However, there does not seem to be one de facto standard among all these different implementations. Essentially I am looking for the 'jQuery' of javascript game engines. One that is backed by a (larger) community, has excellent documentation and is actively maintained. Most of these just seem like one-man projects to me.

要这句话成为一个真正的问题;什么是事实上的标准,在JavaScript中的2D游戏引擎?

To phrase this into a real question; what is the de facto standard for 2d game engines in javascript?

此外,我会与实际实现(除演示乒乓球/吃豆子游戏等)的经验很感兴趣。

Additionally I would be very interested in experiences with actual implementations (other than demo pong / pacman games).

推荐答案

没有一个正确的,现在,我会去说,有的可能永远是一个的以同样的方式有是jQuery的,一个简单的事实,大多数(商业)游戏会希望被无情高性能,这意味着使用尽可能少的额外的克鲁夫特越好,许多库添加不必要的东西或性能命中下可能不理想。

There isn't one right now and I would go on to say that there may never be one in the same way that there is jQuery, for the simple fact that most (commercial) games are going to want to be mercilessly performant, which means using as little extra cruft as possible, and many of these libraries add unnecessary things or performance hits where it may not be desired.

这并不是说他们不会用了,以上所有的库可能好大量的小(ER)的游戏。

That is not to say they won't be used at all, all of the above libraries are probably good for a great deal of small(er) games.

不过我想象的大项目很多工作室会发现自己开始有一个图书馆,直到他们打了一个性能瓶颈,然后编写所有,他们在图书馆本身所使用的组件,以保持只有薄薄位,他们所需要的。

But I imagine on large projects many studios will find themselves starting with a library until they hit a performance wall, and then writing all the components they used in the library themselves in order to keep only the thin bits that they need.

如果有一个流行起来它几乎肯定会是模块化喜欢Moot(第二个最流行的JS库),它试图成为紧凑的您可以只选择要使用的组件。我想你会发现很多具有非常小的引擎的只是的处理声音或的只是的用于处理图像或2D同构板在未来的游戏,而不是游戏有一个(大)库,试图处理每一种可能的2D游戏,

If there is one that becomes popular it will almost certainly be be modular like MooTools (second most popular JS library), where it tries to be compact and lets you select only the components you want to use. I imagine you'll find a lot of games in the future that have a very small engine just for handling sound or just for handling images or a 2D isomorphic board, instead of games that have a (large) library that attempts to handle every possible kind of 2D game.

无论如何,如果你只是想找到最流行的JavaScript引擎将在未来几个月内你最好的选择是使用谷歌(网页排名),以确定最流行的。搜索的2D游戏引擎的JavaScript /帆布会给你一个pretty的好主意,这是最链接到的(流行)库,在任何给定的时间。

Anyway, if you simply want to find the most popular javascript engine then your best bet over the coming months is to use Google (page rank) to determine most popular. Searching for "2D game engines Javascript/Canvas" will give you a pretty good idea of which is the most linked-to (popular) library at any given time.

(毕竟,尝试搜索谷歌JavaScript库,你可以猜测的第一个结果我敢打赌!)

(After all, try searching Google for "JavaScript Library". You can guess the first result I bet!)

这篇关于2D引擎为Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆