Skip to content

h1ve2/pixi-dragonbones-runtime

Repository files navigation

pixi-dragonbones-runtime

NPM Version NPM Downloads

pixi-dragonbones-runtime

DragonBones Runtime for Pixi.js

supports Pixi.js@7~8.x

简体中文

Install

$ npm i pixi-dragonbones-runtime

or

$ yarn add pixi-dragonbones-runtime

Warning

When using [email protected] install [email protected].

Usage

import { PixiFactory } from "pixi-dragonbones-runtime";

// after assets loaded
const factory = PixiFactory.factory;
factory.parseDragonBonesData("xxx_ske.json"); // asset alias or JSON Object 
factory.parseTextureAtlasData("xxx_tex.json", "xxx_tex.png");

const armatureDisplay = factory.buildArmatureDisplay("xxx");

armatureDisplay.animation.play("xxx",-1);

app.stage.addChild(armatureDisplay);

Example

example

About

DragonBones Runtime for Pixi.js

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.dragonbones

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages