Spine runtime for oasis engine.
import { SpineAnimation } from '@oasis-engine/spine';
// init oasis
addSpine();
async function addSpine() {
const spineEntity = await engine.resourceManager.load(
{
url: 'https://gw.alipayobjects.com/os/OasisHub/a66ef194-6bc8-4325-9a59-6ea9097225b1/1620888427489.json',
type: 'spine',
},
);
rootEntity.addChild(spineEntity);
spineAnimation.state.setAnimation(0, 'walk', true);
}
npm install @oasis-engine/spine
oasis-engine v0.4 & @oasis-engine/spine this branch latest npm.
- Simple in usage
- High performance.
- Intergrated oasis-engine rendering engine.
- Component based API.
Everyone is welcome to join us! Whether you find a bug, have a great feature request or you fancy owning a task from the road map feel free to get in touch.
Make sure to read the Contributing Guide before submitting changes.
The Oasis Engine is released under the MIT license. See LICENSE file.