-OneUp::OneUp(const Vector& pos)
-{
- bbox.set_pos(pos);
- bbox.set_size(32, 32);
- sprite = sprite_manager->create("1up");
- physic.set_velocity(100, 400);
-}
-
-OneUp::~OneUp()
+OneUp::OneUp(const Vector& pos, Direction direction)
+ : MovingSprite(pos, "images/powerups/1up/1up.sprite", LAYER_FLOATINGOBJECTS, COLGROUP_TOUCHABLE)