Exemplo n.º 1
0
uint16_t loadLevel(struct Solid* bricks, uint16_t level)
{
	uint16_t num_blocks = 0;
    if (level == 1)
    {
   	    num_blocks = loadLevel1(bricks);
    }
    else if (level == 2)
    {
   	   num_blocks = loadLevel2(bricks);
    }
    else if (level == 3)
    {
   	   num_blocks = loadLevel3(bricks);
    }
    else if (level == 4)
    {
   	   num_blocks = loadLevel4(bricks);
    }
    else if (level == 5)
    {
       num_blocks = loadLevel5(bricks);
    }
    return num_blocks;
}
Exemplo n.º 2
0
//----------------------------------------------------------	
bool ScreenItemAdd::loadScreenItems(const char*)
{
	switch((game->gameLevel-1)%3)
	{
		case 0:
			loadLevel1();
			break;
		case 1:
			loadLevel2();
			break;
		case 2:
			loadLevel3();
			break;
		case 3:
			loadLevel4();
			break;
		default:
			loadLevel1();
			break;
	}
	return true;
}