mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
26 lines
511 B
C++
26 lines
511 B
C++
#ifndef _EXAMPLELAYER_H_
|
|
#define _EXAMPLELAYER_H_
|
|
|
|
#include "cocos2d.h"
|
|
#include <spine/spine-cocos2dx.h>
|
|
|
|
class ExampleLayer: public cocos2d::CCLayer {
|
|
private:
|
|
spine::Atlas *atlas;
|
|
spine::SkeletonData *skeletonData;
|
|
spine::Animation *walkAnimation;
|
|
spine::Animation *jumpAnimation;
|
|
spine::CCSkeleton* skeletonNode;
|
|
|
|
public:
|
|
static cocos2d::CCScene* scene ();
|
|
~ExampleLayer ();
|
|
|
|
virtual bool init ();
|
|
virtual void update (float deltaTime);
|
|
|
|
CREATE_FUNC (ExampleLayer);
|
|
};
|
|
|
|
#endif // _EXAMPLELAYER_H_
|