GithubHelp home page GithubHelp logo

dragonbonesandroid's Introduction

DragonBonesAndroid

DragonBones runtime for Android

DragonBones的android原生代码运行库

---- 2018-12-03 ----

支持v4.5版本json文件解析

已实现:

1.bone变换动画+slot入出动画.
2.z轴顺序.
3.大小粗略预估,给scale<1适当缩小,避免其他帧(非第1帧)出屏幕.
4.支持不给name加载默认动画(有效的).

缺:

1.声音部分的播放.
2.大小还没找到有效方式精确获取,"aabb"节点给的大小只能涵盖第1帧.

示例

import org.android.dragonbones.layer.ArmatureDrawable;

    private void readSke(String path) {
        mAd.setScale(0.8f);
        mAd.enableSimpleImageCache("/mnt/sdcard/ske", true);
        // mAd.loadAnimation("/mnt/sdcard/ske.json", "Armatureblue");
        mAd.loadAnimation(path, null);

        View nodeView = findViewById(R.id.nodeView);
        nodeView.setBackgroundDrawable(mAd);
        // mAd.play("default", false);
        mAd.play(null, false);
    }

dragonbonesandroid's People

Contributors

foolely avatar

Stargazers

XFeng avatar  avatar  avatar zhang avatar 小沙盒工作室-室长 avatar DuGuang avatar

Forkers

14th-rival

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.