Skip to Content
The Alchemy Project

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

NameDescription
Uint8x8-pixel tiles
Uint8y8-pixel tiles
Sint8scrollXsixteenths of the view's motion
Sint8scrollYsixteenths of the view's motion
Sint8speedX1/16 pixels per tick
Sint8speedY1/16 pixels per tick
Uint8periodX8-pixel tiles
Uint8periodY8-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