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
|
2014-03-11 09:31:16 +08:00
|
|
|
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__
|