|
@@ -215,8 +215,8 @@ void GameScene::caseBallCore (Node *core, Node *ball) {
|
|
|
core->runAction(scaleBy);
|
|
|
auto audio = CocosDenshion::SimpleAudioEngine::getInstance();
|
|
|
audio->playEffect("win.wav");
|
|
|
+
|
|
|
auto callbackRotate = CallFunc::create([=](){
|
|
|
- removeBallsAndPowersUP();
|
|
|
level = level + 1;
|
|
|
auto menu_item_start = MenuItemFont::create(MSG_NEXT_LEVEL, CC_CALLBACK_1(GameScene::NextLevel, this));
|
|
|
menu_item_start->setFontNameObj(FONT);
|
|
@@ -229,7 +229,7 @@ void GameScene::caseBallCore (Node *core, Node *ball) {
|
|
|
|
|
|
auto seq = Sequence::create(scaleBy, callbackRotate, nullptr);
|
|
|
core->runAction(seq);
|
|
|
- ball->removeFromParentAndCleanup(true);
|
|
|
+ removeBallsAndPowersUP();
|
|
|
}
|
|
|
|
|
|
void GameScene::caseSaveLevel(Node *powerup_ball) {
|