Dragonbones official C + + version for Cocos2d-x
Dragonbonescpp for Cocos2d-x
Dragonbones and Ccarmature
Dragonbones is a set of skeleton animation toolset, originally developed using Flash and ActionScript 3.0 language, mainly used in flash games, and is currently used extensively in both page and hand tours.
Dragonbones currently contains the following content:
- Editing tool based on the timeline animation in the Flash IDE (art GGMM's favorite);
- The Skeleton animation design panel Designpanel based on the Flash IDE plugin;
- Skeleton animation parsing library and rendering library based on ActionScript 3.0;
- Javascript-based Skeleton animation parsing library and rendering library;
- Skeleton animation parsing library and rendering library based on Unity3d C # script;
- Loomscript-based Skeleton animation parsing library and render library.
A detailed introductory introduction can be seen here:dragonbones Quick Start Guide.
The Cocos2d-x ccarmature ported from the Dragonbones 2.1 release, I modified the Dragonbones Design panel cocos2d-x dedicated DragonBones2.2 so that its direct output let CCAR Mature the supported resource formats.
Ccarmature's Problem
Ccarmature transplant is not perfect, the main problems are as follows:
- Frame-wise animation is not supported;
- Poor support for nested bones;
- No key frame events are implemented;
- It is not supported to replace a bone with frame-wise animation;
- Fully optimized for cocos2d-x, incompatible with Dragonbones API;
- Cocos2d-x in the Ccarmature show the problem of extrusion and deformation animation;
- And so on ...
In addition, in order to support the Cocostudio feature, Ccarmature has made many incompatible dragonbones modifications, resulting in a new version of Ccarmature support for the resource format generated by the Dragonbones Design Panel. For details see: Use Dragonbones for skeletal animation in Cocos2d-x.
Dragonbonescpp
Because of these problems, the Dragonbones Development Group uses C + + to migrate Dragonbones's analytic libraries and animation rendering libraries, named Dragonbonescpp. It features the following:
- This library is fully consistent with the ActionScript 3 library and enables all the functions of the ActionScript 3 library;
- Using Dragonbones's official Design Panel, no longer required to use a modified version specifically for Cocos2d-x, to keep the data format compatible with the latest version;
- Supports the format of the official Dragonbones Design Panel output, so it can also support Spine formats;
- Support for multiple sets of rendering engines, no longer limited to cocos2d-x.
Currently, Dragonbonescpp first completed the support for the Cocos2d-x engine. Here are some demos:
- Dragonbonescpp for Cocos2d-x 2.xDRAGONBONES official C + + version for Cocos2d-x
- Dragonbonescpp for Cocos2d-x 3.x
- Dragonbonescpp for Quick-cocos2d-x
Known Issues:
- Dragonbones Design Panel can export multiple resource formats, but dragonbonescpp only supports xml+png format;
- some memory leaks;
- Failure to do asynchronous resource loading can result in performance problems when loading resources.
Further
The Dragonbones Development Group will continue to update the library, resolve existing issues, and ensure compatibility with the Cocos2d-x engine.
Students who like to edit bone animations with Flash (or hate editing skeletal animations with CCS) are the time!
Dragonbones Action Edit Organ Party C + + version for Cocos2d-x