Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __GAME_SCENE_H__
- #define __GAME_SCENE_H__
- #include "cocos2d.h"
- USING_NS_CC;
- #define TAG_SPRITE_PLAYER 1000
- class GameScene : public Layer
- {
- public:
- static Scene* createScene();
- virtual bool init();
- CREATE_FUNC(GameScene);
- Size winSize;
- Point posStartTouch, posStartPlayer; //
- void initData();
- void initBG();
- void initPlayer();
- void setMissile(float delta);
- void resetMissile(Ref *sender);
- bool onTouchBegan(Touch *touch, Event *unused_event); //onTouchBegan()는 터치한 좌표값을 posStartTouch로 저장
- void onTouchMoved(Touch *touch, Event *unused_event); //그때 플레이어 좌표 posStartPlayer로 저장
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement