+ else if (start_position.x > scroll_x - X_OFFSCREEN_DISTANCE &&
+ start_position.x < scroll_x + screen->w + X_OFFSCREEN_DISTANCE &&
+ ((start_position.y > scroll_y + screen->h &&
+ start_position.y < scroll_y + screen->h + Y_OFFSCREEN_DISTANCE) ||
+ (start_position.y > scroll_y - Y_OFFSCREEN_DISTANCE &&
+ start_position.y < scroll_y)))
+ {
+ if(start_position.x < scroll_x - screen->w/2)
+ activate(RIGHT);
+ else
+ activate(LEFT);
+ }
+ /* Special case for badguys on start of the level.
+ * If in the future, it's possible to set Tux start pos, this case
+ * should contemplate that. */
+ else if (start_position.x > 0 && start_position.x < screen->w &&
+ start_position.y > 0 && start_position.y < screen->h)
+ activate(LEFT);
+ }
+ else
+ {