Darthfett/Jetpack-Man-2 — Issue #4: Support scrolling screen according to rectangle
Author: Darthfett
Created: 2012-02-29 20:18:24+00:00
State: open
Labels: Drawing

Instead of always centering the world exactly on the player's position, the screen should center on a rectangle that is pushed left/right/up/down by the player's bounding box.

This will allow a player to move back and forth without the screen scrolling constantly, and avoid a traditional problem of the player appear to "walk-in-place".

Depending on the size of the rectangle, the player's vision when moving forward can be affected in an interesting way. If the camera has its own form of velocity/acceleration determined by how far the camera is from him, moving fast might add a difficulty factor of reduced forward line-of-sight, which could make super-speed levels interesting. See Mega Man X's Armoured Armadillo level just before the boss as an example of the camera effect.