#include "object/sprite_particle.hpp"
Firefly::Firefly(const lisp::Lisp& lisp)
- : MovingSprite(lisp, "images/objects/firefly/firefly.sprite", LAYER_TILES, COLGROUP_TOUCHABLE), activated(false)
+ : MovingSprite(lisp, "images/objects/resetpoints/default-resetpoint.sprite", LAYER_TILES, COLGROUP_TOUCHABLE), activated(false)
{
-
+
if( !lisp.get( "sprite", sprite_name ) ){
return;
}
if( sprite_name == "" ){
- sprite_name = "images/objects/firefly/firefly.sprite";
+ sprite_name = "images/objects/resetpoints/default-resetpoint.sprite";
return;
}
- //Replace sprite
+ //Replace sprite
sprite = sprite_manager->create( sprite_name );
bbox.set_size(sprite->get_current_hitbox_width(), sprite->get_current_hitbox_height());
}
{
if(activated)
return ABORT_MOVE;
-
+
Player* player = dynamic_cast<Player*> (&other);
if(player) {
activated = true;
GameSession::current()->set_reset_point(Sector::current()->get_name(),
get_pos());
}
-
+
return ABORT_MOVE;
}