This little bee on a honeycomb gives an idea of a simple animation crafted with Esoteric Software's Spine and imported into a Corona SDK project. It consists of four 'bones' - head, body, and two wings, and flutters in a loop. You could use transitions in Corona to make it move around the screen. Touch the bee to make it fold its wings and stop fluttering.
The spine-corona runtime provides functionality to load, manipulate and render Spine skeletal animation data using Corona. spine-corona is based on spine-lua. Full source can be found on github: git or by downloading it as a zip. To start from scratch:
- Copy the contents of
spine-lua
tospine-corona/spine-lua
. - 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.