Mario Zechner 5b1814cff3 spine-lua, spine-love, spine-corona update to 3.4.02 (#722)
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.
2016-10-11 16:33:25 +02:00

1.9 KiB

spine-corona

The spine-corona runtime provides functionality to load, manipulate and render Spine skeletal animation data using Corona. spine-corona is based on spine-lua.

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-corona works with data exported from the latest Spine version.

spine-corona supports all Spine features.

spine-corona does not yet support loading the binary format.

Setup

  1. Download the Spine Runtimes source using git or by downloading it as a zip.
  2. Copy the contents of spine-lua to spine-corona/spine-lua.
  3. Run the main.lua file using Corona. Tap/click to switch between skeletons

Alternatively, the spine-lua and spine-corona/spine-corona directories can be copied into your project. Note that the require statements use spine-lua.Xxx, so the spine-lua files must be in a spine-lua directory in your project.