Cocos2d-html5 alpha2 released

Cocos2d-html5 alpha2 version is out! 

What’s new in alpha2?

  • Google Closure Compiler support: After compilation, the game can run faster by about 10~20%, and your source is obfuscated.
  • DOM Menu/UI:  Now you can use cc.DomMenu/cc.DomMenuItem instead of cc.Menu/cc.MenuItem. DOM elements have the advantage of not needing to redraw each frame, which is perfect for static UI.
  • Unified Javascript API style: as we have discussed and finalized the “cocos2d javascript API standard” with Riq and cocos2d-iphone team, this alpha-2 version follows this standard. This style will be apply on cocos2d-html5 and javascript binding for both cocos2d-iphone/-x. It’s very friendly to javascript programmers.
  • API Documentation: We have completed the API documentation, and online version is available here: Cocos2d-html5 API Reference

Cocos2d-html5 alpha released

I am very happy to announce that Cocos2d-html5 alpha is released! This adds another gem in the Cocos2d family tree as the “Grand-child of Cocos2d-iPhone”. Cocos2d have arrived at the realm of the web.

Cocos2d-html5 is written in Javascript for html5 compliant browsers, also licensed in MIT. It can run on ANY platforms provided that it have access to internet and a html5 ready browser. Yes your internet fridge might be able to run Cocos2d-html5!

The API is very much the same as Cocos2d-X, but a higher level API wrapper is coming in in the next version, which will be friendlier with web Javascript programmers. In addition, the high level API will be compatible with “Javascript Binding for Cocos2d-iPhone and Cocos2d-X” in the future, which means that your game code written for Cocos2d-html5 will be plug and play for both Cocos2d-iPhone and Cocos2d-X framework! With almost native performance!

The first alpha release of Cocos2d-html5 uses Canvas 2d for rendering. It supports almost all features of Cocos2d-X, except some features that relies on 3d perspective (namely CCCamera). It even solved real time color tinting that many other considered impossible for Canvas 2d mode. Theres more to be discovered inside this wonderful release.

Head to the Cocos2d-X website to grab a copy of Cocos2d-html5, Enjoy!

Keep in mind this is the first alpha release, so there will be bugs, feel free to report them to Cocos2d-html5 forum.

The updated test cases http://www.cocos2d-x.org/cocos2d-html5/index.html

11 Responses to “Cocos2d-html5 alpha2 released”


Leave a Reply




Social Widgets powered by AB-WebLog.com.