- writer.start_list("mriceblock");
-
- writer.write_float("x", start_position.x);
- writer.write_float("y", start_position.y);
-
- writer.end_list("mriceblock");
-}
-
-void
-MrIceBlock::activate()
-{
- if (set_direction) {
- dir = initial_direction;
- }
-
- physic.set_velocity_x(dir == LEFT ? -WALKSPEED : WALKSPEED);
- sprite->set_action(dir == LEFT ? "left" : "right");