Cocos2d-x 3.3 final 发布,我们建议你使用 NDK r10c 或者更新版本,因为它修复了 Android 5.0 的一些 bug。
下载地址:cocos2d-x 3.3
Size
- Modularization: automatically reduce the size by c++ linker, and simply to only 2 libraries in cocos2d-x, one for c++, another for Lua
Take lua-empty-test
as example:
- libluaemptytest.so is
9.5M
in v3.2 - libluaemptytest.so is
5.5M
in v3.3
Performance
- Added
ClippingRectangeNode
, which is more efficient for rectangle clipping - Renderer: added
triangle command
- Cocos Studio Reader: use
Flat Buffer
for data format
Usability
- Added a consistent way to set GL context attributes for all platforms
- Node: schedule/unschedule with lambda function
- Added c++11 random support in
cocos2d::random(a,b)
- RenderTexture: add a callback function for
saveToFile()
` - DrawNode: added as many functions as
DrawPrimitive
, whileDrawPrimitive
is deprecated - add setKeepScreenOn() on iOS and Android
Enhancements
Infrastructure
- Added new audio engine on iOS and Android
- Added
AssetsManagerEx
for hot-updates - Tilemap: supported staggered tile map
- Primitive: Support Points, Lines, and Triangles for rendering
- SpriteFrameCache: support loading from plist file content data
UI
- Added Application::openURL()
- Added
WebView
on iOS and Android - Added
ui::Scale9Sprite
3D
- 3D light: directional light, point light, spot light and ambient light
- BillBoard
- Camera
- Reskin
- Attachment
- Better support for FBX, and new fbx-conv
- AABB, OBB and Ray
Following gif is the effect of Light. You can run cpp-tests
to check other modules’ effect.
3rd party libraries
- Facebook SDK integrated in
plugin
on iOS and Android - Updated Spine runtime to v2.0.18
Platforms
- Android: Support Android ARM 64 bit, tested on Nexus 9
- WP8:
- add win8.1 univeral app support
- update to
Visual Studio 2013 with update 3
to useCocos2dShaderCompiler
Documentation
3D sample
我们还创建了一个 3D 实例:FantasyWarrior3D, 用来演示如何通过 cocos2d-x 开发 3d 应用。
The game runs smoothly on old Android phone with single core 1G HZ CPU.
而 2.2.6 版本只要是增加 64 位 iOS 支持,下载地址:http://www.cocos2d-x.org/filedown/cocos2d-x-2.2.6.zip
Cocos2D-X是全球知名的开源跨平台游戏引擎,易学易用,目前已经支持iOS、Android、Windows桌面、Mac OSX、Linux、BlackBerry、Windows Phone等平台。Cocos2d-JS统一了使用JS进行开发的开发体验,将HTML5引擎与JSB的API高度统一起来。 捕鱼达人HTML5版本基于此引擎实现对浏览器的支持,并获得谷歌Web Store 首页置顶推荐。引擎配套有活跃的社区支持,已有来自Google、Zynga、Microsoft、Intel、Samsung、BlackBerry等 跨国公司的优秀工程师为引擎贡献代码,开源社区24小时轮转所有的缺陷都被迅速发现并修复。