Distance of the upper left border of a panel,
text, or view object
from the upper left border of the screen. The position values can be changed during gameplay in order to scroll text or move the panel or view over the screen.
The position may be outside the screen; then only the visible part of the
object is displayed.
Texts can be horizontally or vertically scrolled by adding a scroll value to pos_x or pos_y.
- For 2D games, panels can be moved over the screen by adding a speed to pos_x and pos_y. Collisions between moving panels can be detected with c_intersect.
PANEL* aircraft_pan =
bmap = "compass.pcx";
pos_x = 4;
pos_y = 4;
flags = SHOW;
PANEL, TEXT, VIEW, size_y, offset_y, layer