HelloWorldScene.h 389 B

1234567891011121314151617181920
  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. private:
  12. int levels;
  13. };
  14. #endif // __HELLOWORLD_SCENE_H__