Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #ifndef __TOUCH_AND_MOVE_H__
  2. #define __TOUCH_AND_MOVE_H__
  3.  
  4. #include "cocos2d.h"
  5. USING_NS_CC;
  6.  
  7. class TouchMove: public Layer
  8. {
  9.     Sprite* background;
  10.     Sprite* cloud;
  11. public:
  12.     virtual bool init();
  13.     static Scene* createScene();
  14.     CREATE_FUNC(TouchMove);
  15.  
  16.     static Size screen()
  17.     {
  18.         return Director::getInstance()->getWinSize();
  19.     }
  20.     void update(float dt);
  21.  
  22. };
  23. #endif