mirror of https://github.com/axmolengine/axmol.git
Revert "namespace simplegame for game code"
This reverts commit f35ebf6c494b68e6b3938a8ad1781d0d0684bb45.
This commit is contained in:
parent
74583d21f3
commit
fe01166e92
|
@ -1,9 +1,8 @@
|
|||
#include "AppDelegate.h"
|
||||
#include "HelloWorldScene.h"
|
||||
|
||||
using namespace cocos2d;
|
||||
USING_NS_CC;
|
||||
|
||||
namespace simplegame {
|
||||
|
||||
AppDelegate::AppDelegate() {
|
||||
|
||||
|
@ -69,5 +68,3 @@ void AppDelegate::applicationWillEnterForeground() {
|
|||
// if you use SimpleAudioEngine, it must resume here
|
||||
// CocosDenshion::SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include "cocos2d.h"
|
||||
|
||||
namespace simplegame {
|
||||
|
||||
/**
|
||||
@brief The cocos2d Application.
|
||||
|
||||
|
@ -36,6 +34,5 @@ public:
|
|||
virtual void applicationWillEnterForeground();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // _APP_DELEGATE_H_
|
||||
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
using namespace cocos2d;
|
||||
|
||||
namespace simplegame {
|
||||
|
||||
bool GameOverScene::init()
|
||||
{
|
||||
if( Scene::init() )
|
||||
|
@ -93,5 +91,3 @@ GameOverLayer::~GameOverLayer()
|
|||
_label = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
#include "cocos2d.h"
|
||||
|
||||
namespace simplegame {
|
||||
|
||||
class GameOverLayer : public cocos2d::LayerColor
|
||||
{
|
||||
public:
|
||||
|
@ -54,6 +52,4 @@ public:
|
|||
CC_SYNTHESIZE_READONLY(GameOverLayer*, _layer, Layer);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // _GAME_OVER_SCENE_H_
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
using namespace cocos2d;
|
||||
|
||||
namespace simplegame {
|
||||
|
||||
HelloWorld::~HelloWorld()
|
||||
{
|
||||
if (_targets)
|
||||
|
@ -312,5 +310,3 @@ void HelloWorld::registerWithTouchDispatcher()
|
|||
// TouchDispatcher::sharedDispatcher()->addTargetedDelegate(this,0,true);
|
||||
Director::getInstance()->getTouchDispatcher()->addStandardDelegate(this,0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
//#include "SimpleAudioEngine.h"
|
||||
|
||||
namespace simplegame {
|
||||
|
||||
class HelloWorld : public cocos2d::LayerColor
|
||||
{
|
||||
public:
|
||||
|
@ -46,6 +44,4 @@ protected:
|
|||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // __HELLOWORLD_SCENE_H__
|
||||
|
|
Loading…
Reference in New Issue