Alchemy
Loading...
Searching...
No Matches

MapLayerScroll Struct Reference

One background layer of the field map: its scroll position, origin, parallax against the view, drift and wrap, and its first map cell. More...

#include <map_scroll.h>

Data Fields

s32 x
s32 y
 16.16 fixed-point pixels
s32 offsetX
s32 offsetY
 16.16 fixed-point pixels
s32 scaleX
s32 scaleY
 16.16 fixed point, 0x10000 moves with the view
s32 speedX
s32 speedY
 16.16 fixed-point pixels per frame
s32 phaseX
s32 phaseY
 16.16 fixed-point pixels
u16 maskX
u16 maskY
 a drifting layer's wrap mask, in 8-pixel tiles
struct MapCell * cells
 the layer's first cell in the map cell buffer

Detailed Description

One background layer of the field map: its scroll position, origin, parallax against the view, drift and wrap, and its first map cell.

Definition at line 14 of file map_scroll.h.

Field Documentation

◆ x

◆ y

s32 MapLayerScroll::y

◆ offsetX

◆ offsetY

◆ scaleX

s32 MapLayerScroll::scaleX

◆ scaleY

s32 MapLayerScroll::scaleY

16.16 fixed point, 0x10000 moves with the view

Definition at line 17 of file map_scroll.h.

Referenced by Map_LoadLayeredScene(), Map_SetCameraCenter(), Map_UpdateLayerScroll(), and TretTreeInteriors_EnterRoom().

◆ speedX

◆ speedY

◆ phaseX

◆ phaseY

◆ maskX

u16 MapLayerScroll::maskX

Definition at line 20 of file map_scroll.h.

Referenced by Map_LoadLayeredScene(), Map_SetCameraCenter(), and Map_UpdateLayerScroll().

◆ maskY

u16 MapLayerScroll::maskY

a drifting layer's wrap mask, in 8-pixel tiles

Definition at line 20 of file map_scroll.h.

Referenced by Map_LoadLayeredScene(), Map_SetCameraCenter(), and Map_UpdateLayerScroll().

◆ cells