GithubHelp home page GithubHelp logo

linecode / dragonbones-for-cocos2d-x Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zrong/dragonbones-for-cocos2d-x

0.0 1.0 0.0 5.51 MB

Home Page: http://zengrong.net/post/1915.htm

License: MIT License

JavaScript 10.49% ActionScript 89.51%

dragonbones-for-cocos2d-x's Introduction

DragonBonesCPP

DragonBones开发组已经开发了 DragonBonesCPP 版本,支持 cocos2d-x 2.x 和 3.x 引擎。因此,建议改用 DragonBonesCPP,并使用官方的 DragonBones DesignPanel

详细介绍请看这里:DragonBones 官方C++版本 for cocos2d-x

DragonBones2.2 for cocos2d-x

基于 这里提到的原因,我以DragonBones2.2版本为基础制作了这个插件,并重新打包发布。

我做的工作并不多,只是花了一些时间理解了DragonBonesDesignPanel的结构。

  • 这个项目包含了 SkeletonAnimationLibrarySkeletonAnimationDesignPanel 项目v2.2的内容,做了极少量的修改;
  • jsfl的修改,直接比较 这3个文件即可。其中 skeleton.jsfl.original 是原始文件, skeleton.jsfl.20cocos2dx 是2.0修改版提供的文件, skeketon.jsfl 是我修改的文件;
  • 导出面板中,我增加了两种导出类型 “Zip(XML and PNGs, for cocos2d-x)”、“Zip(XML+PLIST+PNG, for cocos2d-x)”;
  • export panel
  • 如果选择后面一种,可以直接输出XML、PLIST和拼合后的PNG文件,这样就不必再使用其他工具将分离的PNG拼合了;
  • 我修改了导入代码,现在也能在DesignPanel中导入使用上面的类型导出的资源;
  • 其他的修改,请直接比较源码;
  • 如何使用可以看这里: 在cocos2d-x中使用DragonBones

感谢 DragonBones Team 带来这样优秀的软件;

感谢对 DragonBones2.0 进行修改的程序员;

希望这个项目对你们有用。

SkeletonAnimationDesignPanel

http://dragonbones.github.com/

In this project you can find the source code of DragonBones' Flash Pro based design panel, which is a visual editer for skeleton animation editing. With the design panel, designers can easily convert flash timeline based animation to skeleton animation, edit it and export it to texture file for developers.

Following steps show you how to use the source code:

  1. Make sure you have installed Flash Builder with Flex SDK 4.0 or later version.
  2. Make sure you have got SeletonAnimationLibrary project.
  3. Open Flash Builder and create a Flex project named SkeletonAnimationDesignPanel.
  4. Change project location to SkeletonAnimationDesignPanel's location to make sure the IDE can find the source code.
  5. Change complie parameters to -locale en_US zh_CN ja_JP fr_FR -source-path ./locale/{locale} -allow-source-path-overlap=true
  6. Import SeletonAnimationLibrary project.
  7. (Optional) Change project theme to "Graphite".
  8. Test and have fun.

Debug
Want to debug the design panel in Flash Pro? It's very easy. Just to open the SkeletonAnimationDesignPanel in your Flash Pro and debug the project in Flash Builder. Now the debug version of the design panel in Flash Builder is connected with your Flash Pro. You can use it and debug it just like it is inside of the Flash Pro. Don't wait to try this amazing feature!

There are some demos in SkeletonAnimationDemos project shows how to use the design panel

All things you need to download can be found here

Copyright 2012-2013 the DragonBones Team

dragonbones-for-cocos2d-x's People

Contributors

mutoo avatar zrong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.