preload sounds
authorChristoph Sommer <mail@christoph-sommer.de>
Sun, 6 Jan 2008 02:46:38 +0000 (02:46 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Sun, 6 Jan 2008 02:46:38 +0000 (02:46 +0000)
SVN-Revision: 5256

src/badguy/willowisp.cpp
src/object/player.cpp
src/player_status.cpp
src/worldmap/worldmap.cpp

index cc50d6b..bc70de8 100644 (file)
@@ -59,6 +59,7 @@ WillOWisp::WillOWisp(const lisp::Lisp& reader)
 
   countMe = false;
   sound_manager->preload(SOUNDFILE);
+  sound_manager->preload("sounds/warp.wav");
 }
 
 void
index dc484c5..978e073 100644 (file)
@@ -147,6 +147,7 @@ Player::Player(PlayerStatus* _player_status, const std::string& name)
   sound_manager->preload("sounds/flip.wav");
   sound_manager->preload("sounds/invincible.wav");
   sound_manager->preload("sounds/splash.ogg");
+  sound_manager->preload("sounds/shoot.wav");
 
   init();
 }
index 72111e6..4bed7df 100644 (file)
@@ -49,6 +49,8 @@ PlayerStatus::PlayerStatus()
   reset();
 
   coin_surface.reset(new Surface("images/engine/hud/coins-0.png"));
+  sound_manager->preload("sounds/coin.wav");
+  sound_manager->preload("sounds/lifeup.wav");
 }
 
 PlayerStatus::~PlayerStatus()
index 2f5d3aa..e25c162 100644 (file)
@@ -169,6 +169,8 @@ WorldMap::WorldMap(const std::string& filename, const std::string& force_spawnpo
 
   sq_addref(global_vm, &worldmap_table);
   sq_pop(global_vm, 1);
+
+  sound_manager->preload("sounds/warp.wav");
   
   // load worldmap objects
   load(filename);