@rutan/akashic-spine
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@rutan/akashic-spine

Spine で作成したアニメーションを Akashic Engine 上で再生します。

Support version

  • Akashic Engine 3.x
  • Spine 4.1

How to use

Install

akashic install @rutan/akashic-spine

Usage

import { SpineActor } from '@rutan/akashic-spine';

const skeleton = scene.asset.getText('/path/to/my-spine-animation.json');
const atlas = scene.asset.getText('/path/to/my-spine-animation.atlas');
const images = [scene.asset.getImage('/path/to/my-spine-animation.png')];

const actor = new SpineActor({
  scene,
  skeleton,
  atlas,
  images,
  debug: true,
});
actor.setAnimation('walk', true);
scene.append(actor);

具体的な例は demo/sample を参照してください。

License

  • @rutan/akashic-spine is released under the MIT License.
  • @esotericsoftware/spine-core and @esotericsoftware/spine-canvas are released under Spine Runtimes License Agreement

Readme

Keywords

Package Sidebar

Install

npm i @rutan/akashic-spine

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

52.4 kB

Total Files

31

Last publish

Collaborators

  • rutan