Skip to content

Neon District Scenes using Three.JS implementations of Spine objects

Notifications You must be signed in to change notification settings

NeonDistrict/neon-district-spine-threejs

Repository files navigation

Neon District Spine Three.JS Modules

Animation packages for Neon District Portal.

Install

npm install --save https://github.com/NeonDistrict/neon-district-spine-threejs

Include THREE and spine-ts in project

Spine-ts does not have an NPM module we can use, so we need to import it directly. However, it requires that THREE is in globals, and I've not found a way to do this wrapped inside the module, because imports are async and namespaced, and rollup doesn't inject packages into global namespace, so we need to manually include THREE and spine at the root of the parent project.

In the <head>, include THREE and spine-ts:

<script src="./vendor/three.min.js"></script>
<script src="./vendor/spine-threejs.js"></script>

Usage

TBD, hoping for something like:

import CharacterEquipment, { CharacterLoadout } from "neon-district-spine-threejs";

Credit

Took the code basis of this package from colored-heading.

About

Neon District Scenes using Three.JS implementations of Spine objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages