源代码请到Github下载 https://github.com/semgilo/spine-runtime-binary-c
使用环境
- cocos2dx 3.9
- spine 2.1.27
使用步骤
1.将其拷贝到 spine 目录下
2.修改 spine.h
#include <spine/SkeletonBinary.h>
3.修改SkeletonRenderer.cpp
std::string str_ext = skeletonDataFile.substr(skeletonDataFile.length() - 5, 5);
if (str_ext.compare(".skel") == 0)
{
spSkeletonBinary* binary = spSkeletonBinary_create(_atlas);
binary->scale = scale;
spSkeletonData* skeletonData = spSkeletonBinary_