case CONTENT_AIRGROW:
{
- sector->add_object(std::make_shared<PowerUp>(get_pos() + Vector(0, 32), "images/powerups/iceflower/iceflower.sprite"));
+ sector->add_object(std::make_shared<PowerUp>(get_pos() + Vector(0, 32), "images/powerups/airflower/airflower.sprite"));
SoundManager::current()->play("sounds/upgrade.wav");
countdown = true;
break;
case CONTENT_EARTHGROW:
{
- sector->add_object(std::make_shared<PowerUp>(get_pos() + Vector(0, 32), "images/powerups/fireflower/fireflower.sprite"));
+ sector->add_object(std::make_shared<PowerUp>(get_pos() + Vector(0, 32), "images/powerups/earthflower/earthflower.sprite"));
SoundManager::current()->play("sounds/upgrade.wav");
countdown = true;
break;
lightsprite->set_color(Color(0.0f, 0.1f, 0.2f));
}
else if(type == AIR_BONUS) {
- sprite = SpriteManager::current()->create("images/powerups/iceflower/iceflower.sprite");
+ sprite = SpriteManager::current()->create("images/powerups/airflower/airflower.sprite");
SoundManager::current()->preload("sounds/fire-flower.wav");
lightsprite->set_color(Color(0.15f, 0.0f, 0.15f));
}
else if(type == EARTH_BONUS) {
- sprite = SpriteManager::current()->create("images/powerups/fireflower/fireflower.sprite");
+ sprite = SpriteManager::current()->create("images/powerups/earthflower/earthflower.sprite");
SoundManager::current()->preload("sounds/fire-flower.wav");
lightsprite->set_color(Color(0.0f, 0.3f, 0.0f));
} else {
lightsprite->set_color(Color(0.3f, 0.0f, 0.0f));
} else if (sprite_name == "images/powerups/iceflower/iceflower.sprite") {
lightsprite->set_color(Color(0.0f, 0.1f, 0.2f));
+ } else if (sprite_name == "images/powerups/airflower/airflower.sprite") {
+ lightsprite->set_color(Color(0.15f, 0.0f, 0.15f));
+ } else if (sprite_name == "images/powerups/earthflower/earthflower.sprite") {
+ lightsprite->set_color(Color(0.0f, 0.3f, 0.0f));
} else if (sprite_name == "images/powerups/star/star.sprite") {
lightsprite->set_color(Color(0.4f, 0.4f, 0.4f));
}
lightsprite->set_color(Color(0.3f, 0.0f, 0.0f));
} else if (sprite_name == "images/powerups/iceflower/iceflower.sprite") {
lightsprite->set_color(Color(0.0f, 0.1f, 0.2f));
+ } else if (sprite_name == "images/powerups/airflower/airflower.sprite") {
+ lightsprite->set_color(Color(0.15f, 0.0f, 0.15f));
+ } else if (sprite_name == "images/powerups/earthflower/earthflower.sprite") {
+ lightsprite->set_color(Color(0.0f, 0.3f, 0.0f));
} else if (sprite_name == "images/powerups/star/star.sprite") {
lightsprite->set_color(Color(0.4f, 0.4f, 0.4f));
}
if(!player->add_bonus(ICE_BONUS, true))
return FORCE_MOVE;
SoundManager::current()->play("sounds/fire-flower.wav");
+ } else if (sprite_name == "images/powerups/airflower/airflower.sprite") {
+ if(!player->add_bonus(AIR_BONUS, true))
+ return FORCE_MOVE;
+ SoundManager::current()->play("sounds/fire-flower.wav");
+ } else if (sprite_name == "images/powerups/earthflower/earthflower.sprite") {
+ if(!player->add_bonus(EARTH_BONUS, true))
+ return FORCE_MOVE;
+ SoundManager::current()->play("sounds/fire-flower.wav");
} else if (sprite_name == "images/powerups/star/star.sprite") {
player->make_invincible();
} else if (sprite_name == "images/powerups/1up/1up.sprite") {