struct MAP_HEADER_LAYER
One background layer's setup in a layout's header: its origin, its parallax and drift, and where it wraps.
Declared in field_internal.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | x | 8-pixel tiles |
Uint8 | y | 8-pixel tiles |
Sint8 | scrollX | sixteenths of the view's motion |
Sint8 | scrollY | sixteenths of the view's motion |
Sint8 | speedX | 1/16 pixels per tick |
Sint8 | speedY | 1/16 pixels per tick |
Uint8 | periodX | 8-pixel tiles |
Uint8 | periodY | 8-pixel tiles |
Description
One background layer's setup in a layout's header: its origin, its parallax and drift, and where it wraps.
struct MAP_HEADER_LAYER
Referenced by fdMapGridLoadMap().
Definition at line 104 of file field_internal.h.
Fields in detail
x
Uint8 x
8-pixel tiles
y
Uint8 y
8-pixel tiles
scrollX
Sint8 scrollX
sixteenths of the view's motion
scrollY
Sint8 scrollY
sixteenths of the view's motion
speedX
Sint8 speedX
1/16 pixels per tick
speedY
Sint8 speedY
1/16 pixels per tick
periodX
Uint8 periodX
8-pixel tiles
periodY
Uint8 periodY
8-pixel tiles