mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
There are no longer separate animation files, they are now inside the skeleton file. This means there is just one file to manage, which is cleaner. Now that animations are stored in SkeletonData, they can be looked up by name which leads to cleaner runtime APIs. cocos2d and cocos2d-x runtimes got a cleaner ObjC/C++ API.
21 lines
366 B
C++
21 lines
366 B
C++
#ifndef _EXAMPLELAYER_H_
|
|
#define _EXAMPLELAYER_H_
|
|
|
|
#include "cocos2d.h"
|
|
#include <spine/spine-cocos2dx.h>
|
|
|
|
class ExampleLayer: public cocos2d::CCLayer {
|
|
private:
|
|
spine::CCSkeleton* skeletonNode;
|
|
|
|
public:
|
|
static cocos2d::CCScene* scene ();
|
|
|
|
virtual bool init ();
|
|
virtual void update (float deltaTime);
|
|
|
|
CREATE_FUNC (ExampleLayer);
|
|
};
|
|
|
|
#endif // _EXAMPLELAYER_H_
|