Svoka 1ea57900c5 Fixing bugs in Lua runtime; adding support for meshes in Corona runtime; adding spineboy-mesh demo (#600)
Bugs:

* ffd animation was ignoring last frame. Lua has 1-based arrays, so last frame is `frames[#frames]`, not `frames[#frames - 1]`
* nil exception when accessing array lenght after it's confirmed nil. First we check if `not vertices` and in next statement we're trying to check for it's length, which causes exception. This code is logically equivalent to code before but avoids checking potentially nil array for length.
2016-06-04 16:12:43 +02:00
..
2013-02-20 01:13:59 +01:00
2013-02-20 01:13:59 +01:00
2016-04-26 22:51:04 +02:00

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 Spine 2.1.27. Updating spine-corona to v3.0, v3.1, and v3.2 is in progress.

spine-corona supports all Spine features except for rendering meshes due to Corona having a limited graphics API.

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. There are multiple examples that can be enabled by editing this file.

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.

Examples

spineboy Example goblins Example dragon Example