+ // some defaults if no script has been set
+ if (sprite_name == "images/powerups/egg/egg.sprite") {
+ if(!player->add_bonus(GROWUP_BONUS, true))
+ return FORCE_MOVE;
+ sound_manager->play("sounds/grow.ogg");
+ } else if (sprite_name == "images/powerups/fireflower/fireflower.sprite") {
+ if(!player->add_bonus(FIRE_BONUS, true))
+ return FORCE_MOVE;
+ sound_manager->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") {
+ player->get_status()->add_coins(100);
+ }