axmol/tests/cpp-empty-test/Classes/HelloWorldScene.h

21 lines
398 B
C
Raw Normal View History

2014-03-10 20:07:20 +08:00
#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#include "cocos2d.h"
2016-12-21 13:49:59 +08:00
class HelloWorld : public cocos2d::Scene
2014-03-10 20:07:20 +08:00
{
public:
2015-08-13 10:46:33 +08:00
virtual bool init() override;
2014-03-10 20:07:20 +08:00
static cocos2d::Scene* scene();
2015-08-13 10:46:33 +08:00
2014-03-10 20:07:20 +08:00
// a selector callback
void menuCloseCallback(Ref* sender);
2015-08-13 10:46:33 +08:00
// implement the "static create()" method manually
2014-03-10 20:07:20 +08:00
CREATE_FUNC(HelloWorld);
};
#endif // __HELLOWORLD_SCENE_H__