From: Marek Moeckel Date: Fri, 9 May 2008 11:56:00 +0000 (+0000) Subject: new oldschool growup sound X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0c71afbd5047bdd4704072489aa9c22cef75648f;p=supertux.git new oldschool growup sound SVN-Revision: 5450 --- diff --git a/data/sounds/grow.ogg b/data/sounds/grow.ogg new file mode 100644 index 000000000..675cf23d4 Binary files /dev/null and b/data/sounds/grow.ogg differ diff --git a/src/object/growup.cpp b/src/object/growup.cpp index c85535f26..1031a8361 100644 --- a/src/object/growup.cpp +++ b/src/object/growup.cpp @@ -32,7 +32,7 @@ GrowUp::GrowUp(Direction direction) { physic.enable_gravity(true); physic.set_velocity_x((direction == LEFT)?-100:100); - sound_manager->preload("sounds/grow.wav"); + sound_manager->preload("sounds/grow.ogg"); } void @@ -63,7 +63,7 @@ GrowUp::collision(GameObject& other, const CollisionHit& hit ) return ABORT_MOVE; } - sound_manager->play("sounds/grow.wav"); + sound_manager->play("sounds/grow.ogg"); remove_me(); return ABORT_MOVE; diff --git a/src/object/powerup.cpp b/src/object/powerup.cpp index 09a747063..429e2847c 100644 --- a/src/object/powerup.cpp +++ b/src/object/powerup.cpp @@ -37,7 +37,7 @@ PowerUp::PowerUp(const lisp::Lisp& lisp) no_physics = false; lisp.get("disable-physics", no_physics); physic.enable_gravity(true); - sound_manager->preload("sounds/grow.wav"); + sound_manager->preload("sounds/grow.ogg"); sound_manager->preload("sounds/fire-flower.wav"); } @@ -70,7 +70,7 @@ PowerUp::collision(GameObject& other, const CollisionHit&) if (sprite_name == "images/powerups/egg/egg.sprite") { if(!player->add_bonus(GROWUP_BONUS, true)) return FORCE_MOVE; - sound_manager->play("sounds/grow.wav"); + 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;