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. | |
|
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().
|
extern |
Definition at line 18 of file facing.c.
Referenced by Sprite_ComposeAnimationFrame().
|
extern |
Definition at line 22 of file facing.c.
Referenced by Sprite_ComposeAnimationFrame().
|
extern |
Definition at line 26 of file facing.c.
Referenced by Sprite_ComposeAnimationFrame().
|
extern |
Definition at line 31 of file facing.c.
Referenced by Sprite_ComposeAnimationFrame().
|
extern |
Definition at line 36 of file facing.c.
Referenced by Sprite_ComposeAnimationFrame().
|
extern |
Definition at line 40 of file facing.c.
Referenced by Sprite_ComposeAnimationFrame().
|
extern |
Definition at line 44 of file facing.c.
Referenced by Sprite_ComposeAnimationFrame().
|
extern |
Definition at line 55 of file facing.c.
Referenced by Sprite_ComposeAnimationFrame().
|
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().
|
extern |
|
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().
|
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().
|
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().
|
extern |
|
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().