Skip to main content

Crate agb_eb_ext

Crate agb_eb_ext 

Source
Expand description

Reusable utilities for GBA games built with agb.

ModuleContents
backgroundsCreate and stack 4bpp RegularBackgrounds
button_highlightButtonHighlight: sprite indicator that eases between positions
directionDirection enum built from button input
gfxOne-call sprite display traits, frame/meta-tile drawing helpers
menu_cursorMenuCursor: grid cursor for menus
scrolling_cursorScrollingCursor: MenuCursor that tracks a visible window
rngSeed generation from input and division-free random helpers
transitionsFade 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