* String encoding simplified for reading by using number of bytes rather than number of UTF-8 characters. * Parent bone index is no longer minus 1 and omitted for root. * Mesh and weighted mesh vertices array is no longer preceeded by a length. UVs array length is vertex count, not vertex array length. Edges changed to short. * Bounding box vertices array length is vertex count, not vertex array length.
spine-libgdx
The spine-libgdx runtime provides functionality to load, manipulate and render Spine skeletal animation data using libgdx.
Licensing
This Spine Runtime may only be used for personal or internal use, typically to evaluate Spine before purchasing. If you would like to incorporate a Spine Runtime into your applications, distribute software containing a Spine Runtime, or modify a Spine Runtime, then you will need a valid Spine license. Please see the Spine Runtimes Software License for detailed information.
The Spine Runtimes are developed with the intent to be used with data exported from Spine. By purchasing Spine, Section 2 of the Spine Software License grants the right to create and distribute derivative works of the Spine Runtimes.
Spine version
spine-libgdx works with data exported from the latest version of Spine.
spine-libgdx supports all Spine features and is the reference runtime implementation.
Setup
- Download the Spine Runtimes source using git or by downloading it as a zip.
- Using Eclipse, import the project by choosing File -> Import -> Existing projects. For other IDEs you will need to create a new project and import the source.
Alternatively, the contents of the spine-libgdx/src directory can be copied into your project.
Notes
- The "test" source directory contains optional examples.
- spine-libgdx depends on the gdx-backend-lwjgl project so the tests can easily be run on the desktop. If the tests are excluded, spine-libgdx only needs to depend on the gdx project.
- spine-libgdx depends on the gdx-box2d extension project solely for the
Box2DExampletest.
Examples
- HTML5 example
- Super Spineboy Full game example done with Spine Essential, includes source code.
- Simple example 1 Simplest possible example, fully commented.
- Simple example 2 Shows events and bounding box hit detection.
- Simple example 3 Shows mesh rendering and IK using the raptor example.
- More examples