new oldschool growup sound
authorMarek Moeckel <wansti@gmx.de>
Fri, 9 May 2008 11:56:00 +0000 (11:56 +0000)
committerMarek Moeckel <wansti@gmx.de>
Fri, 9 May 2008 11:56:00 +0000 (11:56 +0000)
SVN-Revision: 5450

data/sounds/grow.ogg [new file with mode: 0644]
src/object/growup.cpp
src/object/powerup.cpp

diff --git a/data/sounds/grow.ogg b/data/sounds/grow.ogg
new file mode 100644 (file)
index 0000000..675cf23
Binary files /dev/null and b/data/sounds/grow.ogg differ
index c85535f..1031a83 100644 (file)
@@ -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;
index 09a7470..429e284 100644 (file)
@@ -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;