// Initialize the platforms that the bird jumps on void GameScene::initPlatforms(void) { CCLog("initPlatforms"); currentPlatformTag = kPlatformsStartTag; while(currentPlatformTag < kPlatformsStartTag + kNumPlatforms) { initPlatform(); currentPlatformTag++; } resetPlatforms(); }
// Initializes everything and then starts the game by setting the gameSuspend void GameScene::startGame(void) { CCLog("startGame"); score = 0; resetClouds(); resetPlatforms(); resetBird(); resetBonus(); gameSuspended = false; }
// Initialize the platforms that the jumper jumps on void GameScene::initPlatforms(void) { // CCLog("initPlatforms"); isPowerPicked = false; currentPlatformTag = kPlatformsStartTag; while(currentPlatformTag < kPlatformsStartTag + kNumPlatforms) { initPlatform(); currentPlatformTag++; } resetPlatforms(); }
// Initializes everything and then starts the game by setting the gameSuspend void GameScene::startGame(void) { // CCLog("startGame"); score = 0; resetClouds(); resetPlatforms(); resetjumper(); // resetBonus(); // resetTree(); gameSuspended = false; }