Centralized game state structure. More...
Public Attributes | |
| s16 | bg1_scroll_x |
| s16 | bg1_scroll_y |
| s16 | bg2_scroll_x |
| s16 | bg2_scroll_y |
| Entity | bullets [8] |
| Entity | enemies [8] |
| u8 | fire_cd |
| u16 | frame |
| s16 | player_x |
| s16 | player_y |
| u16 | prng |
| u16 | scroll_y |
Centralized game state structure.
Coordinates are s16 because the scroll thresholds subtract and compare them: a signed type keeps "left of the threshold" a plain <.
| s16 GameState::bg1_scroll_x |
BG1 horizontal scroll offset
| s16 GameState::bg1_scroll_y |
BG1 vertical scroll offset
| s16 GameState::bg2_scroll_x |
BG2 horizontal scroll offset (parallax: half of BG1's)
| s16 GameState::bg2_scroll_y |
BG2 vertical scroll offset
| Entity GameState::bullets[8] |
| Entity GameState::enemies[8] |
| u8 GameState::fire_cd |
| u16 GameState::frame |
| s16 GameState::player_x |
Kit's X position (screen coords)
| s16 GameState::player_y |
Kit's Y position (screen coords)
| u16 GameState::prng |
| u16 GameState::scroll_y |