HelloWorldScene.h 364 B

123456789101112131415161718
  1. #ifndef __HELLOWORLD_SCENE_H__
  2. #define __HELLOWORLD_SCENE_H__
  3. #include "cocos2d.h"
  4. class HelloWorld : public cocos2d::Layer {
  5. public:
  6. static cocos2d::Scene* createScene();
  7. virtual bool init();
  8. void Play(Ref *pSender);
  9. // implement the "static create()" method manually
  10. CREATE_FUNC(HelloWorld);
  11. };
  12. #endif // __HELLOWORLD_SCENE_H__