开发者

Libraries and tutorials for HTML5 game for touch devices? [duplicate]

开发者 https://www.devze.com 2023-04-04 09:11 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: HTML 5 game development tools
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

HTML 5 game development tools

I am pretty new to game development and want to build a simple game for touch devices using html5 (canvas) and java开发者_开发百科script. Then use phonegap to create a native app from HTML+js.

After some search, there are few HTML5 game frameworks like limejs. But I wanted to know:

  1. Which framework is the most popular one for touch devices?
  2. Are there any tutorials/how-tos using which I can start with game dev for mobile touch devices in HTML5?

After referring to this list on Game Engines I am thinking about two frameworks:

1. LimeJS

2. Hydra

Any suggestions?


This question is a duplicate I answered just two days ago: HTML 5 game development tools

Here's a copy/paste of what I wrote:

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


LimeJS. It has a better user community imho. Lots of user support, and forums. You can download lots of source, and be exponentially further along.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号