{
glow_sprite.reset(sprite_manager->create("images/creatures/ghosttree/ghosttree-glow.sprite"));
set_colgroup_active(COLGROUP_TOUCHABLE);
+ sound_manager->preload("sounds/tree_howling.ogg");
+ sound_manager->preload("sounds/tree_suck.ogg");
}
GhostTree::~GhostTree()
Jumpy::Jumpy(const lisp::Lisp& reader)
: BadGuy(reader, "images/creatures/snowjumpy/snowjumpy.sprite"), groundhit_pos_set(false)
{
+ // TODO create a nice sound for this...
+ //sound_manager->preload("sounds/skid.wav");
}
void
: BadGuy(reader, "images/creatures/mole/mole.sprite", LAYER_TILES-1), state(PRE_THROWING)
{
physic.enable_gravity(false);
+ sound_manager->preload("sounds/fall.wav");
+ sound_manager->preload("sounds/squish.wav");
+ sound_manager->preload("sounds/dartfire.wav";
}
Mole::Mole(const Vector& pos)
: BadGuy(pos, "images/creatures/mole/mole.sprite", LAYER_TILES-1), state(PRE_THROWING)
{
physic.enable_gravity(false);
+ sound_manager->preload("sounds/fall.wav");
+ sound_manager->preload("sounds/squish.wav");
+ sound_manager->preload("sounds/dartfire.wav";
}
void
{
physic.enable_gravity(true);
countMe = false;
+ sound_manager->preload("sounds/fall.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
MoleRock::MoleRock(const Vector& pos, const Vector& velocity, const BadGuy* parent = 0)
{
physic.enable_gravity(true);
countMe = false;
+ sound_manager->preload("sounds/fall.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
MoleRock::MoleRock(const MoleRock& other)
: BadGuy(other), parent(other.parent), initial_velocity(Vector(0, -400))
{
+ sound_manager->preload("sounds/fall.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
MoleRock::~MoleRock()
{
walk_speed = WALKSPEED;
max_drop_height = 16;
- sound_manager->preload("sounds/mr_tree.ogg");
sound_manager->preload("sounds/mr_treehit.ogg");
}
silence_distance = 1/distance_factor;
sound_source = 0; // not playing at the beginning
+ sound_manager->preload(sample);
latency=0;
}
}
else if(type == ICE_BONUS) {
sprite = sprite_manager->create("images/powerups/iceflower/iceflower.sprite");
+ sound_manager->preload("sounds/fire-flower.wav");
} else {
assert(false);
}
{
bbox.set_pos(pos);
sound_manager->preload("sounds/brick.wav");
- sound_manager->preload("sounds/brick.wav");
}
void
sound_manager->preload("sounds/flip.wav");
sound_manager->preload("sounds/invincible_start.ogg");
sound_manager->preload("sounds/splash.ogg");
- sound_manager->preload("sounds/shoot.wav");
init();
}
add_object(new DisplayEffect("Effect"));
add_object(new TextObject("Text"));
+ sound_manager->preload("sounds/shoot.wav");
+
// create a new squirrel table for the sector
using namespace Scripting;
sprite = sprite_manager->create("images/objects/door/door.sprite");
sprite->set_action("closed");
bbox.set_size(sprite->get_current_hitbox_width(), sprite->get_current_hitbox_height());
+
+ sound_manager->preload("sounds/door.wav");
}
Door::Door(int x, int y, std::string sector, std::string spawnpoint)
sprite = sprite_manager->create("images/objects/door/door.sprite");
sprite->set_action("closed");
bbox.set_size(sprite->get_current_hitbox_width(), sprite->get_current_hitbox_height());
+
+ sound_manager->preload("sounds/door.wav");
}
Door::~Door()
writer.write_string("sector", target_sector);
writer.write_string("spawnpoint", target_spawnpoint);
- sound_manager->preload("sounds/door.wav");
+
writer.end_list("door");
}