Advertisement
sunny1304r

Ball_Move

Mar 16th, 2014
3,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement