mirror of
https://github.com/wu736139669/SmallGame_Cocos2dx.git
synced 2026-08-05 06:23:09 +00:00
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
|
|
|
|
#ifndef __OnceAgain__GameLayer_Crazy__
|
|
#define __OnceAgain__GameLayer_Crazy__
|
|
#include "cocos2d.h"
|
|
#include "CocosGUI.h"
|
|
#include "cocos-ext.h"
|
|
#include "ComData.h"
|
|
#include "BaseData.h"
|
|
USING_NS_CC_EXT;
|
|
USING_NS_CC;
|
|
enum{
|
|
eStarEffectIDBegin = 5100,
|
|
eStarEffectIDStar = 5101,
|
|
eStarEffectIDEnd,
|
|
};
|
|
|
|
class CGameLayerCrazyMode : public UILayer{
|
|
|
|
public:
|
|
// static CGameLayerCrazyMode &sharedInstance(void) {
|
|
// if (m_pInstance == 0) {
|
|
// m_pInstance = new CGameLayerCrazyMode::create();
|
|
// }
|
|
// return (*m_pInstance);
|
|
// }
|
|
public:
|
|
CGameLayerCrazyMode();
|
|
~CGameLayerCrazyMode();
|
|
|
|
virtual bool init();
|
|
void play(ECrazyMode eMode);
|
|
void pause();
|
|
CREATE_FUNC(CGameLayerCrazyMode);
|
|
protected:
|
|
//ÉèÖÃÐÇÐǶ¯»
|
|
void setStarAni(CCSprite* pStar,bool bYellow);
|
|
void setCrazyModeAni();
|
|
void operateAllSchedulerAndActions(cocos2d::CCNode* node, ESwitchFlag flag);
|
|
private:
|
|
static CGameLayerCrazyMode* m_pInstance;
|
|
};
|
|
|
|
#endif /* defined(__OnceAgain__GameLayer_Base__) */
|