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* ball;
  10. public:
  11.     virtual bool init();
  12.     static Scene* createScene();
  13.     CREATE_FUNC(TouchMove);
  14.  
  15.     static Size screen()
  16.     {
  17.         return Director::getInstance()->getWinSize();
  18.     }
  19.  
  20. };
  21. #endif