Alchemy
Loading...
Searching...
No Matches

facing.h File Reference

Go to the source code of this file.

Variables

const u8 gAnimationFacing_Kind1 [16]
 Facing tables: for each animation kind, the frame to draw for each sector of the facing angle.
const u8 gAnimationFacing_Kind22 [8]
const u8 gAnimationFacing_Kind2 [8]
const u8 gAnimationFacing_Kind3 [16]
const u8 gAnimationFacing_Kind5 [16]
const u8 gAnimationFacing_Kind8 [8]
const u8 gAnimationFacing_Kind88 [8]
const u8 gAnimationFacing_Kind4 [64]
const u8 gAnimationFacing_Kind6 [64]
const u8 gMap_TileDissolveOrder [64]
 The order in which the 64 pixels of a sprite's tile in OBJ VRAM dissolve; read by Map_RenderAnimatedTileFrame (objects.c).
const u16 gMap_TileDissolveTail
 Two bytes after the dissolve order; no code in The Broken Seal names them.
const s32 gCamera_FixedViewMatrix [12]
 The fixed camera's view matrix (Q16): identity with a -0.8 shear of y by x.
const s32 gScriptObject_CycleTable [32]
 One period of a triangle wave, which bobs a floating object up and down.
const s32 gScript_MainScript [1]
 The idle script an object returns to when its own one ends: a lone SC_END, which reloads it.
const s16 gScript_MainScriptTail [8]
 Halfwords that follow the main script; no code in The Broken Seal names them.
const s32 gWorldMap_KeyYaws [16]
 The world map camera's turn rate for each state of the direction pad, read by Object_MoveOnWorldMap.

Variable Documentation

◆ gAnimationFacing_Kind1

const u8 gAnimationFacing_Kind1[16]
extern

Facing tables: for each animation kind, the frame to draw for each sector of the facing angle.

Sprite_ComposeAnimationFrame adds the low three bits to the animation's base frame, and bit 7 (0x80) mirrors the sprite. Kinds 1, 2 and 22 have eight sectors, 3 and 5 sixteen, 4 and 6 sixty-four; kinds 8 and 88 have eight sectors centred on the eight compass directions. Kind 20 uses kind 2's table. Kind 1's table has 16 entries, but a 16-bit angle shifted down 13 reads only the first eight.

Definition at line 13 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gAnimationFacing_Kind22

const u8 gAnimationFacing_Kind22[8]
extern

Definition at line 18 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gAnimationFacing_Kind2

const u8 gAnimationFacing_Kind2[8]
extern

Definition at line 22 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gAnimationFacing_Kind3

const u8 gAnimationFacing_Kind3[16]
extern

Definition at line 26 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gAnimationFacing_Kind5

const u8 gAnimationFacing_Kind5[16]
extern

Definition at line 31 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gAnimationFacing_Kind8

const u8 gAnimationFacing_Kind8[8]
extern

Definition at line 36 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gAnimationFacing_Kind88

const u8 gAnimationFacing_Kind88[8]
extern

Definition at line 40 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gAnimationFacing_Kind4

const u8 gAnimationFacing_Kind4[64]
extern

Definition at line 44 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gAnimationFacing_Kind6

const u8 gAnimationFacing_Kind6[64]
extern

Definition at line 55 of file facing.c.

Referenced by Sprite_ComposeAnimationFrame().

◆ gMap_TileDissolveOrder

const u8 gMap_TileDissolveOrder[64]
extern

The order in which the 64 pixels of a sprite's tile in OBJ VRAM dissolve; read by Map_RenderAnimatedTileFrame (objects.c).

Definition at line 68 of file facing.c.

Referenced by Map_RenderAnimatedTileFrame().

◆ gMap_TileDissolveTail

const u16 gMap_TileDissolveTail
extern

Two bytes after the dissolve order; no code in The Broken Seal names them.

Definition at line 76 of file facing.c.

◆ gCamera_FixedViewMatrix

const s32 gCamera_FixedViewMatrix[12]
extern

The fixed camera's view matrix (Q16): identity with a -0.8 shear of y by x.

ObjectSystem_UpdateCameraFixed applies it while battle commands are chosen.

Definition at line 80 of file facing.c.

Referenced by ObjectSystem_UpdateCameraFixed().

◆ gScriptObject_CycleTable

const s32 gScriptObject_CycleTable[32]
extern

One period of a triangle wave, which bobs a floating object up and down.

Object_UpdateAllThumb reads it at half the object's phase, scaled by its gravity.

Definition at line 90 of file facing.c.

Referenced by Object_UpdateAllThumb().

◆ gScript_MainScript

const s32 gScript_MainScript[1]
extern

The idle script an object returns to when its own one ends: a lone SC_END, which reloads it.

Script_End (SC_END) points an object here.

Definition at line 99 of file facing.c.

Referenced by Script_End().

◆ gScript_MainScriptTail

const s16 gScript_MainScriptTail[8]
extern

Halfwords that follow the main script; no code in The Broken Seal names them.

Definition at line 105 of file facing.c.

◆ gWorldMap_KeyYaws

const s32 gWorldMap_KeyYaws[16]
extern

The world map camera's turn rate for each state of the direction pad, read by Object_MoveOnWorldMap.

Definition at line 128 of file facing.c.

Referenced by Object_MoveOnWorldMap().