HTML 5游戏开发工具 [英] HTML 5 game development tools

查看:236
本文介绍了HTML 5游戏开发工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以引导我使用HTML5游戏开发的最佳引擎吗?

这是简单的跳跃和表面检测游戏。这个主题就像跳到树顶一样。



你在这种情况下建议什么?



I我正在为游戏定位Android和iOS设备。为了节省内存,我应该写我的自定义JavaScript还是去图书馆?你建议哪个库?

解决方案

我花了很多时间评估不同的选项。 狡猾是我的最爱,也是我当前使用的项目。 LimeJS 很不错,但它依赖 Closure 框架,我不喜欢。我也喜欢 EaselJS $ b btw其中一个最专业的选项是 impactjs.com/rel =nofollow noreferrer>影响力,所以你也应该看看那个。然而,它并没有提供各种开源库所提供的许多功能,Impact的这些功能提供了其他库并不真的非常有价值。例如,如果您需要一个游戏的物理引擎(平台游戏可能会这样做),那么您可以轻松集成 Box2D 靠你自己。 另一个Box2D链接



也就是说,不使用第三方库从头开始做事并不是一个糟糕的选择。免费电子书 Dive Into HTML5 很好地解释了Canvas元素的工作原理。问题是,好的图形库将提供很多图形功能,这些图形功能不是内置的:允许Z顺序并将对象附加到对方的显示图层,通过补间对象和Spritesheet的动画,鼠标事件所以你可以点击对象等。






更新:已经结束自从我发布这个答案之后的一年,情况发生了轻微的变化(这个 是一个新兴的技术领域。)尽管Crafty仍然是一个不错的选择,但在过去的一年中,EaselJS已经获得了很多动力特别是考虑到 Adob​​e跳上EaselJS列车。)我将切换到该工具为未来的项目(也请注意,它有一个新网站






更新2:
EaselJS仍然是我的最爱选项,但另一个很好的选项已经出现: Phaser 。我打算在不久的将来探索这个。


Can anybody please guide me with the best engine for game development in HTML5?

It is simple jumping and surface detection game. The theme is like jumping and go above the tree tops.

What you suggest in this case?

I am targeting Android and iOS devices for the game. In order to save memory, should I write my custom JavaScript or go for a library? Which library do you suggest?

解决方案

I have spent a lot of time evaluating different options. Crafty is my favorite and the one I'm using for my current project. LimeJS is pretty good but it relies on the Closure framework, which I'm not a fan of. I also liked both EaselJS and CasualJS a lot.

btw one of the most "professional" options is Impact, so you should take a look at that one too. However it doesn't provide many of the features that the various open-source libraries do, and the features Impact provides that the other libraries don't aren't really that valuable. For example, if you need a physics engine for your game (and a platform game probably does) then you can easily integrate Box2D on your own. another Box2D link

That said, doing things from scratch without using a 3rd-party library is not a bad option. The free ebook Dive Into HTML5 does a great job of explaining how the Canvas element works. The thing is, there are a lot of graphics features that a good graphics library will provide that aren't built-in: a display heirarchy allowing Z-order and attaching objects to each other, animation through both tweening objects and spritesheets, mouse events so that you can click on objects, etc..


UPDATE: It's been over a year since I posted that answer and the situation has changed slightly (this is a nascent area of technology.) Although Crafty is still a great choice, in the past year EaselJS has picked up a lot of momentum (especially considering Adobe hopped on the EaselJS train.) I'm gonna switch to that tool for future projects (also note that it has a new website)


UPDATE 2: EaselJS is still my favorite option, but another great option has cropped up: Phaser. I'm planning to explore this one in the near future.

这篇关于HTML 5游戏开发工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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