@rutan/akashic-spine
v0.1.0
Published
Spine Animation for Akashic Engine
Downloads
2
Readme
@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