// 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;
}
示例#3
0
// 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();
}
示例#4
0
// 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;
}