Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

16 Commits

Repository files navigation

dragonBones

npm versionnpm downloads

官方库 需要几处改动才能用得顺手,所以有了这个修改版。

Install

npm i dragonbones.js

Usage

constfactory=dragonBones.PixiFactory.factory,{resources}=loaderfactory.parseDragonBonesData(resources['orad_ske.json'].data)factory.parseTextureAtlasData(resources['orad_tex.json'].data,resources['orad_tex.png'].texture)constanime=factory.buildArmatureDisplay('root')// 事件帧anime.armature.eventDispatcher.addDBEventListener('frameEvent',async({name})=>{if(name!=='meet:end')returnanime.animation.play('love')awaitdelay(3)anime.animation.play('snatch')})anime.animation.play('meet')anime.position.set(screen.width>>1,screen.height+200>>1)stage.addChild(anime)

About

DragonBones Runtime for Pixi.js

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages