Skip to content

Instantly share code, notes, and snippets.

@shinriyo
Created October 11, 2012 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinriyo/3869893 to your computer and use it in GitHub Desktop.
Save shinriyo/3869893 to your computer and use it in GitHub Desktop.
Tiledゲームのパート3のGameOverSceneのヘッダ
//
// GameOverScene.h
// TileBasedGame
//
// Created by sugita on 12/10/11.
// Copyright (c) 2012 __shinriyo__. All rights reserved.
//
#ifndef __GAMEOVER_SCENE_H__
#define __GAMEOVER_SCENE_H__
#include "cocos2d.h"
class GameOverLayer : public cocos2d::CCLayerColor
{
public:
GameOverLayer():_label(NULL) {};
virtual ~GameOverLayer();
bool init();
LAYER_NODE_FUNC(GameOverLayer);
void gameOverDone();
// implement the "static node()" method manually
CC_SYNTHESIZE_READONLY(cocos2d::CCLabelTTF*, _label, Label);
};
class GameOverScene : public cocos2d::CCScene
{
public:
GameOverScene():_layer(NULL) {};
virtual ~GameOverScene();
bool init();
SCENE_NODE_FUNC(GameOverScene);
CC_SYNTHESIZE_READONLY(GameOverLayer*, _layer, Layer);
};
#endif // _GAME_OVER_SCENE_H_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment