Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML 5 game development tools [closed]

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?

like image 606
Asad Nauman Avatar asked Sep 11 '11 06:09

Asad Nauman


People also ask

Is HTML5 good for game development?

In short, HTML5 offers the ability to create cross-browser and cross-platform games. It means you'll have to code once and can deploy the game anywhere. It'll not only save you effort but lots of money as well. It's because you won't have to create different games for different platforms.

Can you code a game in HTML5?

Since most game developers want to focus on their actual game and not in creating this whole abstraction layer, it is recommended you use a HTML5 game frameworks. HTML5 game frameworks and libraries that contain building components you can use to create your own games.

Can you use HTML for game development?

Games built with HTML work on smartphones, tablets, PCs and Smart TVs. Advertise and promote your game all over the Web as well as other media.

Are HTML5 games safe?

Do HTML5 apps pose any security threats for developers and businesses? The answer unfortunately is yes. Apps built with HTML5 are like any web-based applications. Developers should take proper security measures against cyber attacks to safeguard any stored data and communications.


1 Answers

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.

like image 100
jhocking Avatar answered Sep 22 '22 19:09

jhocking