SHARE
TWEET

LevelOneScene.h

kamakwazee Jul 21st, 2013 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef _LEVEL_ONE_SCENE_H_
  2. #define _LEVEL_ONE_SCENE_H_
  3.  
  4. #include "cocos2d.h"
  5.  
  6. class LevelOneLayer : public cocos2d::CCLayerColor
  7. {
  8. public:
  9.         LevelOneLayer();
  10.         virtual ~LevelOneLayer();
  11.         bool init();
  12.         CREATE_FUNC(LevelOneLayer);
  13.        
  14.         //space for methods/variables
  15.        
  16.         void ccTouchesEnded(cocos2d::CCSet *touches, cocos2d::CCEvent *event);
  17.        
  18.         void updateGame(float dt);
  19.        
  20.         void spriteMoveFinished(cocos2d::CCNode *sender);
  21.        
  22.         CC_SYNTHESIZE_READONLY(cocos2d::CCLabelTTF*, _label, Label);
  23.        
  24.         protected:
  25.                 cocos2d::CCArray *_obstacles;
  26.                 std::vector<int> _times;
  27.                 cocos2d::CCSprite *activeObstacle;
  28. };
  29.  
  30. class LevelOneScene : public cocos2d::CCScene
  31. {
  32. public:
  33.         LevelOneScene():_layer(NULL){};
  34.         ~LevelOneScene();
  35.        
  36.         bool init();
  37.         CREATE_FUNC(LevelOneScene);
  38.        
  39.         CC_SYNTHESIZE_READONLY(LevelOneLayer*, _layer, Layer);
  40. };
  41. #endif
RAW Paste Data
Top