Skip to Content
The Alchemy Project

src/field/field_psynergy_lookups.c

Lookup tables of field Psynergy after Burst's glow: the Ring's picture map, the sprite shapes' sizes and the darkening maps of the colour ramp.

Variables

NameDescription
const Uint16RingPictureTiles [256]The screen entries of the Ring's 16x16-tile picture (fdBgMapDrawClipped16x16), row by row: tile numbers with their flip bits.
const Uint8OamShapeSizes [12][2]{width, height} in pixels of each sprite shape and size, by shape * 4 + size: square, wide, then tall.
const Uint8ColorBufferDarkenOneLevelMap [32]The colour ramp from 224 to 255 darkened by one, two and four levels: each colour's index one, two or four steps down, 0 below 224.
const Uint8ColorBufferDarkenTwoLevelsMap [32]As ColorBufferDarkenOneLevelMap, two steps down.
const Uint8ColorBufferDarkenFourLevelsMap [32]As ColorBufferDarkenOneLevelMap, four steps down.
const Sint32FieldPsynergyUnusedRows [41][4]Unused: 41 rows of four words, each 2, two numbers and -1, after the darkening maps; nothing names them.

Description

Lookup tables of field Psynergy after Burst's glow: the Ring's picture map, the sprite shapes' sizes and the darkening maps of the colour ramp.

Variables in detail

RingPictureTiles

const Uint16 RingPictureTiles[256]

The screen entries of the Ring's 16x16-tile picture (fdBgMapDrawClipped16x16), row by row: tile numbers with their flip bits.

Referenced by fdBgMapDrawClipped16x16().

Definition at line 10 of file field_psynergy_lookups.c.

OamShapeSizes

const Uint8 OamShapeSizes[12][2]

{width, height} in pixels of each sprite shape and size, by shape * 4 + size: square, wide, then tall.

Referenced by fdEffectSpriteInit().

Definition at line 61 of file field_psynergy_lookups.c.

ColorBufferDarkenOneLevelMap

const Uint8 ColorBufferDarkenOneLevelMap[32]

The colour ramp from 224 to 255 darkened by one, two and four levels: each colour's index one, two or four steps down, 0 below 224.

Referenced by fdColorBufferDarkenOneLevel().

Definition at line 69 of file field_psynergy_lookups.c.

ColorBufferDarkenTwoLevelsMap

const Uint8 ColorBufferDarkenTwoLevelsMap[32]

As ColorBufferDarkenOneLevelMap, two steps down.

Referenced by fdColorBufferDarkenTwoLevels().

Definition at line 75 of file field_psynergy_lookups.c.

ColorBufferDarkenFourLevelsMap

const Uint8 ColorBufferDarkenFourLevelsMap[32]

As ColorBufferDarkenOneLevelMap, four steps down.

Referenced by fdColorBufferDarkenFourLevels().

Definition at line 81 of file field_psynergy_lookups.c.

FieldPsynergyUnusedRows

const Sint32 FieldPsynergyUnusedRows[41][4]

Unused: 41 rows of four words, each 2, two numbers and -1, after the darkening maps; nothing names them.

References Sint32.

Definition at line 88 of file field_psynergy_lookups.c.