Revert "namespace simplegame for game code"

This reverts commit f35ebf6c494b68e6b3938a8ad1781d0d0684bb45.
This commit is contained in:
folecr 2013-08-05 00:08:46 -07:00
parent 74583d21f3
commit fe01166e92
6 changed files with 2 additions and 24 deletions

View File

@ -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();
}
}

View File

@ -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_

View File

@ -28,8 +28,6 @@
using namespace cocos2d;
namespace simplegame {
bool GameOverScene::init()
{
if( Scene::init() )
@ -93,5 +91,3 @@ GameOverLayer::~GameOverLayer()
_label = NULL;
}
}
}

View File

@ -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_

View File

@ -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);
}
}

View File

@ -5,8 +5,6 @@
//#include "SimpleAudioEngine.h"
namespace simplegame {
class HelloWorld : public cocos2d::LayerColor
{
public:
@ -46,6 +44,4 @@ protected:
};
}
#endif // __HELLOWORLD_SCENE_H__