Expand description
Reusable utilities for GBA games built with agb.
| Module | Contents |
|---|---|
backgrounds | Create and stack 4bpp RegularBackgrounds |
button_highlight | ButtonHighlight: sprite indicator that eases between positions |
direction | Direction enum built from button input |
gfx | One-call sprite display traits, frame/meta-tile drawing helpers |
menu_cursor | MenuCursor: grid cursor for menus |
scrolling_cursor | ScrollingCursor: MenuCursor that tracks a visible window |
rng | Seed generation from input and division-free random helpers |
transitions | Fade to/from black and white using the blend unit |
Modules§
- backgrounds
- Create and stack 4bpp regular backgrounds
- button_
highlight - Animated focus indicator for buttons
- direction
- D-pad direction enum
- gfx
- Sprite display traits and background drawing helpers
- menu_
cursor - Grid cursor for menus
- prelude
- Re-exports of the most commonly used items
- rng
- Seed generation and division-free random helpers
- scrolling_
cursor - Grid cursor for scrolling menus
- transitions
- Fade transitions using the blend unit
Constants§
- TILE_
SIZE - Size of a background tile in pixels