GuoLei1990 / engine-spine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oasis Engine spine runtime

Jun-12-2021 18-37-22.gif


Spine runtime for oasis engine.

Usage

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

npm install @oasis-engine/spine

Version

oasis-engine v0.4 & @oasis-engine/spine this branch latest npm.

Feature

  • Simple in usage
  • High performance.
  • Intergrated oasis-engine rendering engine.
  • Component based API.

Contributing

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.

Links

License

The Oasis Engine is released under the MIT license. See LICENSE file.

About

License:MIT License


Languages

Language:TypeScript 98.9%Language:JavaScript 0.9%Language:CSS 0.1%Language:HTML 0.1%