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







Amazing! Congrats!
Wonderful!!! beside of Cocos2D, Cocos3D, Cocos2D-X, Cocos2d Builder… this is another great project! Congrats for the cocos teams
thanks for the great job
awsome project.
whoa!! awesome
congratulations
Congrats Walzer!! Looks amazing.
Great news! This is very important for the promotion and advancement of the engine. I wish the author success in catching bugs
“which means that your game code written for Cocos2d-html5 will be plug and play for both Cocos2d-iPhone and Cocos2d-X framework!”
can you elaborate more?
If we write a game on this higher api shared with cocos2d-x\cocos2d-iphone javascript api, what we should port to run it on cocos2d-iphone\cocos2d-x?
The high level api is the same as Javascript binding for both Cocos2d-x and Cocos2d-iphone, which is in the works.
Once the JS binding is released, you can write your game in JS for Cocos2d-x or Cocos2d-iPhone, then you can take the same code and run on Cocos2d-html5, and vice versa
Awesome, really… between this and the news about CocosBuilder… You are making LOTS of progress
.
Awesome! I will start my first html5 cocos2d game soon!
Hi..
I tried this on ipad.. The TextInput does not launch keyboard. Any solution?