• Home
  • Articles
  • cocos2d-x v3.0-pre-alpha0 and cocos2d-html5 v2.1.5
 
17
0
0

cocos2d-x v3.0-pre-alpha0 and cocos2d-html5 v2.1.5

We are happy to announce the release of:

  • cocos2d-x v3.0 pre-alpha0
  • cocos2d-html5 v2.1.5

cocos2d-x

Download

Highlights

For cocos2d-x v3.0, not only we want to add great features like an improved renderer, 2.5D features, component-based system, and better Labels; but also we want a polished and C++ friendly API.

So, for this release (pre-alpha0), we put all our energy in removing the Objective-C patterns, and in adopting C++ best practices, including some C++11 features.

We are very happy with the result. We think it is easier to use, and easier to maintain. And we were able to make all these API changes, while preserving backward compatibility with the v2.1 API. Although the v2.1 was tagged as deprecated.

Here is list of the most important changes:

  • Removed objective-c patterns. The CC and cc prefixes were removed from class names and free functions.
  • Added C++11 std::function support for callbacks in MenuItem and CallFunc. That means that Lambda objects could be used as callbacks!
  • We started the Cocos2d_c++_coding_style document. We are following those guidelines in our code. (work in progress)
  • Updated all samples to use the new API, including major improvements in Test Cpp
  • All iOS and Mac Xcode projects were merged into one big Xcode project that includes all the libraries an samples.
  • Removed Android and iOS specific templates. Use the script named create-multi-platform-projects.py to create multi-platform projects instead.
  • Uses Android asset manager to read files in the APK, which is about 40% faster
  • Added ETC1 support on all platforms
  • Added Lua bindings for OpenGL ES
  • Updated SpiderMonkey to Firefox v22
  • Updated Chipmunk2d to v6.1.5
  • Added project part for QT Creator
  • and much more

More information

Read more about all the new features at Release Node v3.0.0

cocos2d-html5

Download

Highlights

  • Optimized John Resig's inheritance pattern cc.Class.extend with advanced property initialization
  • Ported Cocos2d-html5 API to Cocos2d-x v2.1.4, keep compatible is the most important things
  • Optimized performance in some action's update() function
  • Integrated Armature module, now you can use it to add your bone animation
  • Optimized performance of MoonWarriors and CocosDragon. Now they run smoother on mobile browser
  • Implemented the rest features of Cocos2d-x extensions in HTML5 version

What's next

Our focus for the next release is Mobile performance. We want cocos2d-html5, not only to be a great solution for desktop browsers, but for mobile browsers as well!

More information

Read more about all the new features at Release Note v2.1.5

Discussion

-