2010-10-01 22:52:15 +08:00
|
|
|
//
|
|
|
|
// GameOverScene.h
|
|
|
|
// Cocos2DSimpleGame
|
|
|
|
//
|
|
|
|
// Created by Ray Wenderlich on 2/10/10.
|
|
|
|
// Copyright 2010 Ray Wenderlich. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _GAME_OVER_SCENE_H_
|
|
|
|
#define _GAME_OVER_SCENE_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
|
|
|
|
class GameOverLayer : public cocos2d::CCColorLayer
|
|
|
|
{
|
|
|
|
public:
|
2010-10-13 17:02:48 +08:00
|
|
|
GameOverLayer():_label(NULL) {};
|
2010-10-01 22:52:15 +08:00
|
|
|
virtual ~GameOverLayer();
|
2010-10-13 17:02:48 +08:00
|
|
|
bool init();
|
2010-10-09 09:58:27 +08:00
|
|
|
LAYER_NODE_FUNC(GameOverLayer);
|
2010-10-01 22:52:15 +08:00
|
|
|
|
|
|
|
void gameOverDone();
|
|
|
|
|
2010-10-13 17:02:48 +08:00
|
|
|
CCX_SYNTHESIZE_READONLY(cocos2d::CCLabel*, _label, Label);
|
2010-10-01 22:52:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class GameOverScene : public cocos2d::CCScene
|
|
|
|
{
|
|
|
|
public:
|
2010-10-13 17:02:48 +08:00
|
|
|
GameOverScene():_layer(NULL) {};
|
|
|
|
~GameOverScene();
|
2010-10-01 22:52:15 +08:00
|
|
|
bool init();
|
2010-10-09 09:58:27 +08:00
|
|
|
SCENE_NODE_FUNC(GameOverScene);
|
2010-10-01 22:52:15 +08:00
|
|
|
|
2010-10-13 17:02:48 +08:00
|
|
|
CCX_SYNTHESIZE_READONLY(GameOverLayer*, _layer, Layer);
|
2010-10-01 22:52:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _GAME_OVER_SCENE_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
#import "cocos2d.h"
|
|
|
|
|
|
|
|
@interface GameOverLayer : CCColorLayer {
|
|
|
|
CCLabel *_label;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic, retain) CCLabel *label;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface GameOverScene : CCScene {
|
|
|
|
GameOverLayer *_layer;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic, retain) GameOverLayer *layer;
|
|
|
|
|
|
|
|
@end
|
|
|
|
*/
|