Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: nacltoons/src/frontend.cc

Issue 12579005: [nacltoons] Rename core classes in accordance with doc. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nacltoons/src/app_delegate.cc ('k') | nacltoons/src/game_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nacltoons/src/frontend.cc
diff --git a/nacltoons/src/frontend.cc b/nacltoons/src/frontend.cc
index b2276804747f5107e3fcff914e58eb47c863372f..8f8af3d96552e29f068a7700bf633abbcc7048c0 100644
--- a/nacltoons/src/frontend.cc
+++ b/nacltoons/src/frontend.cc
@@ -4,7 +4,7 @@
#include "frontend.h"
#include "app_delegate.h"
-#include "gameplay_scene.h"
+#include "game_manager.h"
#include "CCLuaEngine.h"
@@ -66,14 +66,7 @@ void LayoutMenu(CCMenu* menu, uint row_size, CCPoint padding)
void FrontEndLayer::LevelSelected(CCObject* sender) {
int level = ((CCMenuItem*)sender)->getTag();
CCLog("LevelSelected: %d", level);
- CCTransitionScene* transition;
- CCDirector* director = CCDirector::sharedDirector();
-
- // transition to a new (autorelease) GameplayScene.
- CCScene* scene = GameplayScene::create(level);
- director->setDepthTest(true);
- transition = CCTransitionPageTurn::create(1.0f, scene, false);
- director->pushScene(transition);
+ GameManager::sharedManager()->LoadLevel(level);
}
void FrontEndLayer::AddChildAligned(CCNode* node, int height) {
« no previous file with comments | « nacltoons/src/app_delegate.cc ('k') | nacltoons/src/game_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698