|
6 years ago | |
---|---|---|
.. | ||
Resources | 6 years ago | |
Resources-ios | 9 years ago | |
Resources-mac | 9 years ago | |
example | 8 years ago | |
spine-cocos2d-objc.xcodeproj | 8 years ago | |
src | 7 years ago | |
CMakeLists.txt | 9 years ago | |
LICENSE | 8 years ago | |
README.md | 7 years ago |
The spine-cocos2d-objc runtime provides functionality to load, manipulate and render Spine skeletal animation data using the latest cocos2d-objc. spine-cocos2d-objc is based on spine-c.
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-cocos2d-objc works with data exported from Spine 3.6.x.
spine-cocos2d-objc supports all Spine features.
spine-cocos2d-objc does not yet support loading the binary format.
git clone https://github.com/esotericsoftware/spine-runtimes
) or download it as a zip via the download button above.spine-c/spine-c/src/spine
and spine-cocos2d-objc/src/spine
to your projectspine-c/spine-c/include
and spine-cocos2d-objc/src
to your header search path. Note that includes are specified as #inclue <spine/file.h>
, so the spine
directory cannot be omitted when copying the source files..m
files in spine-cocos2d-objc/src
from ARC. See https://stackoverflow.com/questions/6646052/how-can-i-disable-arc-for-a-single-file-in-a-project for more information.See the Spine Runtimes documentation on how to use the APIs or check out the Spine cocos2d-objc example.
The Spine cocos2d-objc example works on iOS simulators and devices.
SkeletonRenderer.twoColorTint = true
. Note that skeletons rendered with this feature will not batch with other skeletons.brew install cmake
git clone https://github.com/esotericsoftware/spine-runtimes
) or download it as a zip via the download button above.cd
into the spine-runtimes/spine-cocos2d-objc
foldermkdir build && cd build && cmake ../..
, this will download the cocos2d-objc dependencyspine-runtimes/spine-cocos2d-objc/spine-cocos2d-objc.xcodeproj/
Run
button or type CMD+R
to run the example on the simulatorpodspec (maintained externally)