badlogic b44154e2b7 [lua] Fix track enumeration. Closes #1635. 5 年之前
..
data bb51ec7f23 Updated examples, removed stretch-ik stretchyman. 6 年之前
spine-love b67bf992a0 Single bone IK fix and license header update. Closes #1580, closes #1581. 5 年之前
LICENSE 7f7e5f0fec Updated license headers and LICENSE files. 6 年之前
README.md 2b879f9b7d [lua] Fixed wrong frame array length calculation in TransformConstraintTimeline. Updated spine-love README.md with instructions for debugging the example project with IntelliJ IDEA and EmmyLua. Closes #1611. 5 年之前
main.lua b44154e2b7 [lua] Fix track enumeration. Closes #1635. 5 年之前

README.md

spine-love

The spine-love runtime provides functionality to load, manipulate and render Spine skeletal animation data using LÖVE. spine-love is based on spine-lua.

Licensing

You are welcome to evaluate the Spine Runtimes and the examples we provide in this repository free of charge.

You can integrate the Spine Runtimes into your software free of charge, but users of your software must have their own Spine license. Please make your users aware of this requirement! This option is often chosen by those making development tools, such as an SDK, game toolkit, or software library.

In order to distribute your software containing the Spine Runtimes to others that don't have a Spine license, you need a Spine license at the time of integration. Then you can distribute your software containing the Spine Runtimes however you like, provided others don't modify it or use it to create new software. If others want to do that, they'll need their own Spine license.

For the official legal terms governing the Spine Runtimes, please read the Spine Runtimes License Agreement and Section 2 of the Spine Editor License Agreement.

Spine version

spine-love works with data exported from Spine 3.8.x.

spine-love supports all Spine features except for blending modes other than normal.

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

Setup

  1. Download the Spine Runtimes source using git or by downloading it as a zip via the download button above.
  2. Copy the contents of spine-lua to spine-love/spine-lua.
  3. Run the main.lua file using LÖVE.

Alternatively, the spine-lua and spine-love/spine-love 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.

Notes

  • To enable two color tinting, pass true to SkeletonRenderer.new().

Examples

If you want to run and debug the example project, use IntelliJ IDEA with the EmmyLua plugin.

  1. Install IntelliJ IDEA and the EmmyLua plugin.
  2. Install LÖVE.
  3. Copy the contents of spine-lua to spine-love/spine-lua.
  4. Open the spine-love folder in IntelliJ IDEA.
  5. Create a new launch configuration of the type Lua Application, with the following settings
    1. Program should point at the love or love.exe executable, e.g. /Applications/love.app/Contents/MacOS/love on macOS.
    2. Working directory should be the spine-love/ directory.
    3. Parameters should be ./ so LÖVE loads the main.lua file from spine-love/.

Simple Example