The spine-lua API has been updated to be compatible with Spine version 3.4.02 (latest stable). The spine-lua API now supports path constraints, transform constraints, uses the new way we encode meshes etc. There are no API breaking changes, only API additions, such as PathConstraints and TransformConstraints as well as additional methods to Skeleton and similar classes. The internals of the spine-lua API have also been updated to follow Lua best performance practices by localizing heavily and using meta tables for "class methods". The spine-lua API now also loads texture atlases as exported by Spine. All that is required for a consumer is to supply an image loading function for their specific engine/framework. We provide implementations for spine-love and spine-corona. The spine-love API can now render all Spine attachment types, including meshes and linked meshes. The API has changed. Where previously a "class" Skeleton existed with a draw function, the new spine-love API introduces a new SkeletonRenderer. See the example on API usage. The spine-corona API can now also render all Spine attachment types. The API has not changed.
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