Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #ifndef __GAME_SCENE_H__
  2. #define __GAME_SCENE_H__
  3.  
  4. #include "cocos2d.h"
  5.  
  6. USING_NS_CC;
  7.  
  8. #define TAG_SPRITE_PLAYER 1000
  9.  
  10. class GameScene : public Layer
  11. {
  12. public:
  13.  
  14. static Scene* createScene();
  15.  
  16. virtual bool init();
  17. CREATE_FUNC(GameScene);
  18.  
  19. Size winSize;
  20. Point posStartTouch, posStartPlayer; //
  21.  
  22. void initData();
  23.  
  24. void initBG();
  25. void initPlayer();
  26.  
  27. void setMissile(float delta);
  28. void resetMissile(Ref *sender);
  29.  
  30. bool onTouchBegan(Touch *touch, Event *unused_event); //onTouchBegan()는 터치한 좌표값을 posStartTouch로 저장
  31. void onTouchMoved(Touch *touch, Event *unused_event); //그때 플레이어 좌표 posStartPlayer로 저장
  32. };
  33.  
  34. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement