I’m excited to announce that Cocos2d-JS v3.2 RC0 is now available.
As you already know, Cocos2d-JS v3.1 have provided a new renderer architecture, in v3.2, we have done our best to polish the architecture design and stabilized the new renderer. Now the architecture level refactorization is complete, it improved again the performance, and it will make future improvement much easier.
A brief introduction of Cocos2d-JS
Cocos2d-JS is Cocos2d-x engine’s JavaScript version that includes Cocos2d-html5 and Cocos2d-x JavaScript Bindings. It equips your game with cross-browser and cross-platform abilities, accompanied by full Cocos2d-x features and simplified JavaScript friendly APIs.
Cocos2d-JS reinvented workflows for all platforms, it provides a consistent development experience for whichever platform you want to distribute to, no matter web and native. “Code once, run everywhere” is incredibly easy and natural in Cocos2d-JS. This will bring your game great opportunities in almost all channels of distribution.
Furthermore, JavaScript friendly APIs make your game development experience a breeze - easy to code, test and distribute. In the meantime, Cocos2d-JS is super powerful along with all these cool new features: Editors Support, Assets Manager, Object Pool, JS to Objective-C/JAVA reflection, etc.
Highlights
- Refactoration of web engine by separating the render logic, the arthictecture level refactoration is now completed and brounght great performance improvement, especially on mobile browsers.
- Refactoration of web engine’s resolution adaptation and audio engine with polyfilled adaptation logics for different devices and browsers. This ensures better compatibility and better extensibility for future needs.
- Supported modulization for JSB, developers can comment out the bindings registration code then the corresponded module will be excluded in the final package. Minimum package size for android is now 4.4mb. The usage is described in the upgrade guide.
- Added restart game feature and fixed crutial bugs in AssetsManager, developers can now easily update assets and scripts, new scripts can take effect directly with a restart.
- Bound all missed chipmunk API in JSB, this greatly improved physics game support in Cocos2d-JS.
Notice
For JSB build, there are some restrictions :
- [Android build] Suggested NDK version is r10c, if you don’t need Android 5.0 compatibility, you can also use r9d, other NDKs are not supported.
- [iOS build] Xcode version must be 5.1.1 +
- [Web code obfuscation] JRE or JDK version must be 1.6 or 1.7
Download
Workflows
-
Cross platforms developers can use Cocos Console to create projects, boost their development with web version engine and deploy games onto all native platforms and all browsers with Cocos Console.
-
Casual web game developers can download the Lite Version and start to develop just like using other web frameworks (e.g. jQuery).
More information
Read more about all the features and bug fixes
Upgrade your project from previous versions
If you want to upgrade your game based on v3.0 previous version to the v3.2 RC0 version, you should follow these steps:
- Download the Cocos2d-JS v3.2 RC0 package.
- Upgrade cocos command with
setup.py
. - Create a new project with
cocos new
command. - Replace the “src”, “res”, “index.html”, “project.json”, “main.js” etc with your old project.
- Then you may need to refer to the upgrade guide to solve some API change issues.
About Cocos2d family
- Cocos2d-JS v3.2 RC0 uses Cocos2d-x v3.3rc1 as base of JSB solution
- Cocos2d-JS v3.2 is compatible with Cocos Code IDE v1.1.0
- Cocos2d-JS v3.2 is compatible with Cocos Studio v1.2 - v1.6, Cocos Studio 2 support have been removed because flat buffer binary file can’t be parsed in JS, we will support Cocos Studio 2 in v3.3 with a JSON format parser.
With any problems you might have, our communities are happy to help: