{
physic.enable_gravity(false);
countMe = false;
+ sound_manager->preload("sounds/darthit.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
Dart::Dart(const Vector& pos, Direction d, const BadGuy* parent = 0)
{
physic.enable_gravity(false);
countMe = false;
+ sound_manager->preload("sounds/darthit.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
Dart::Dart(const Dart& other)
: BadGuy(other), set_direction(other.set_direction), initial_direction(other.initial_direction), parent(other.parent)
{
sound_source.reset(sound_manager->create_sound_source(SOUNDFILE));
+ sound_manager->preload("sounds/darthit.wav");
+ sound_manager->preload("sounds/stomp.wav");
}
Dart::~Dart()
reader.get("fire-delay", fire_delay);
reader.get("ammo", ammo);
countMe = false;
+ sound_manager->preload("sounds/dartfire.wav");
}
void
: BadGuy(reader, "images/creatures/mr_iceblock/mr_iceblock.sprite"), ice_state(ICESTATE_NORMAL), squishcount(0)
{
set_direction = false;
+ sound_manager->preload("sounds/iceblock_bump.wav");
+ sound_manager->preload("sounds/stomp.wav");
+ sound_manager->preload("sounds/kick.wav");
}
MrIceBlock::MrIceBlock(const Vector& pos, Direction d)
{
set_direction = true;
initial_direction = d;
+ sound_manager->preload("sounds/iceblock_bump.wav");
+ sound_manager->preload("sounds/stomp.wav");
+ sound_manager->preload("sounds/kick.wav");
}
void
: BadGuy(reader, "images/creatures/mr_tree/mr_tree.sprite"), mystate(STATE_BIG)
{
sprite->set_action(dir == LEFT ? "large-left" : "large-right");
+ sound_manager->preload("sounds/mr_tree.ogg");
+ sound_manager->preload("sounds/mr_treehit.ogg");
}
void
: BadGuy(reader, "images/creatures/snail/snail.sprite"), state(STATE_NORMAL), squishcount(0)
{
set_direction = false;
+ sound_manager->preload("sounds/iceblock_bump.wav");
+ sound_manager->preload("sounds/stomp.wav");
+ sound_manager->preload("sounds/kick.wav");
}
Snail::Snail(const Vector& pos, Direction d)
{
set_direction = true;
initial_direction = d;
+ sound_manager->preload("sounds/iceblock_bump.wav");
+ sound_manager->preload("sounds/stomp.wav");
+ sound_manager->preload("sounds/kick.wav");
}
void
hit_points = INITIAL_HITPOINTS;
reader.get("dead-script", dead_script);
countMe = false;
+ sound_manager->preload("sounds/yeti_gna.wav");
+ sound_manager->preload("sounds/yeti_roar.wav");
}
Yeti::~Yeti()
bbox.set_size(32, 32.1);
set_group(COLGROUP_STATIC);
flags |= FLAG_SOLID;
+ sound_manager->preload("sounds/upgrade.wav");
+ sound_manager->preload("sounds/brick.wav");
}
Block::~Block()
Fireworks::Fireworks()
{
timer.start(.2);
+ sound_manager->preload("sounds/fireworks.wav");
}
Fireworks::~Fireworks()
{
bbox.set_size(32, 32);
- if(_type == FIREFLOWER)
+ if(_type == FIREFLOWER){
sprite = sprite_manager->create("images/powerups/fireflower/fireflower.sprite");
+ sound_manager->preload("sounds/fire-flower.wav");
+ }
else
sprite = sprite_manager->create("images/powerups/iceflower/iceflower.sprite");
{
physic.enable_gravity(true);
physic.set_velocity_x(100);
+ sound_manager->preload("sounds/grow.wav");
}
void
bbox.set_pos(pos);
flags &= ~FLAG_SOLID;
set_group(COLGROUP_MOVING);
+ sound_manager->preload("sounds/brick.wav");
}
void
sound_manager->preload("sounds/hurt.wav");
sound_manager->preload("sounds/skid.wav");
sound_manager->preload("sounds/flip.wav");
+ sound_manager->preload("sounds/invincible.wav");
init();
}
no_physics = false;
lisp.get("disable-physics", no_physics);
physic.enable_gravity(true);
+ sound_manager->preload("sounds/grow.wav");
+ sound_manager->preload("sounds/fire-flower.wav");
}
HitResponse