Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _LEVEL_ONE_SCENE_H_
- #define _LEVEL_ONE_SCENE_H_
- #include "cocos2d.h"
- class LevelOneLayer : public cocos2d::CCLayerColor
- {
- public:
- LevelOneLayer();
- virtual ~LevelOneLayer();
- bool init();
- CREATE_FUNC(LevelOneLayer);
- //space for methods/variables
- void ccTouchesEnded(cocos2d::CCSet *touches, cocos2d::CCEvent *event);
- void updateGame(float dt);
- void spriteMoveFinished(cocos2d::CCNode *sender);
- protected:
- int _tags[];
- int _times[];
- int arrayLength;
- cocos2d::CCArray *_obstaclesOnScreen;
- float _time;
- };
- class LevelOneScene : public cocos2d::CCScene
- {
- public:
- LevelOneScene():_layer(NULL){};
- ~LevelOneScene();
- bool init();
- CREATE_FUNC(LevelOneScene);
- CC_SYNTHESIZE_READONLY(LevelOneLayer*, _layer, Layer);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement