[Supertux-Commit] r5450 - in trunk/supertux: data/sounds src/object

wansti at millhouse.dreamhost.com wansti at millhouse.dreamhost.com
Fri May 9 04:56:00 PDT 2008


Author: wansti
Date: 2008-05-09 04:56:00 -0700 (Fri, 09 May 2008)
New Revision: 5450

Added:
   trunk/supertux/data/sounds/grow.ogg
Modified:
   trunk/supertux/src/object/growup.cpp
   trunk/supertux/src/object/powerup.cpp
Log:
new oldschool growup sound


Added: trunk/supertux/data/sounds/grow.ogg
===================================================================
(Binary files differ)


Property changes on: trunk/supertux/data/sounds/grow.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/supertux/src/object/growup.cpp
===================================================================
--- trunk/supertux/src/object/growup.cpp	2008-05-09 10:39:11 UTC (rev 5449)
+++ trunk/supertux/src/object/growup.cpp	2008-05-09 11:56:00 UTC (rev 5450)
@@ -32,7 +32,7 @@
 {
   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 @@
       return ABORT_MOVE;
     }
 
-    sound_manager->play("sounds/grow.wav");
+    sound_manager->play("sounds/grow.ogg");
     remove_me();
 
     return ABORT_MOVE;

Modified: trunk/supertux/src/object/powerup.cpp
===================================================================
--- trunk/supertux/src/object/powerup.cpp	2008-05-09 10:39:11 UTC (rev 5449)
+++ trunk/supertux/src/object/powerup.cpp	2008-05-09 11:56:00 UTC (rev 5450)
@@ -37,7 +37,7 @@
   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 @@
   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;




More information about the Supertux-Commit mailing list