|
@@ -118,6 +118,7 @@ bool HelloWorld::init() {
|
|
|
userdata->setIntegerForKey("level", level);
|
|
|
diff = 3600 * 12 + last - sec;
|
|
|
}
|
|
|
+ this->levels = level;
|
|
|
|
|
|
char level_text[256];
|
|
|
if (level != 0) {
|
|
@@ -132,7 +133,7 @@ bool HelloWorld::init() {
|
|
|
}
|
|
|
|
|
|
void HelloWorld::Play(cocos2d::Ref *pSender) {
|
|
|
- auto scene = GameScene::createScene(0);
|
|
|
+ auto scene = GameScene::createScene(this->levels);
|
|
|
Director::getInstance()->replaceScene(scene);
|
|
|
//Director::getInstance()->end();
|
|
|
}
|