agb_eb_ext 0.25.3

AGB Extension methods
Documentation
//! Reusable utilities for GBA games built with [agb](https://agbrs.dev/).
//!
//! | Module | Contents |
//! |----|----|
//! | [`backgrounds`] | Create and stack 4bpp [`RegularBackground`](agb::display::tiled::RegularBackground)s |
//! | [`button_highlight`] | [`ButtonHighlight`](button_highlight::ButtonHighlight): sprite indicator that eases between positions |
//! | [`direction`] | [`Direction`](direction::Direction) enum built from button input |
//! | [`gfx`] | One-call sprite display traits, frame/meta-tile drawing helpers |
//! | [`menu_cursor`] | [`MenuCursor`](menu_cursor::MenuCursor): grid cursor for menus |
//! | [`scrolling_cursor`] | [`ScrollingCursor`](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 |
#![no_std]
#![cfg_attr(test, no_main)]
#![cfg_attr(test, feature(custom_test_frameworks))]
#![cfg_attr(test, reexport_test_harness_main = "test_main")]
#![cfg_attr(test, test_runner(agb::test_runner::test_runner))]

/// Create and stack 4bpp regular backgrounds
pub mod backgrounds;
/// Animated focus indicator for buttons
pub mod button_highlight;
/// D-pad direction enum
pub mod direction;
/// Sprite display traits and background drawing helpers
pub mod gfx;
/// Grid cursor for menus
pub mod menu_cursor;
/// Seed generation and division-free random helpers
pub mod rng;
/// Grid cursor for scrolling menus
pub mod scrolling_cursor;
/// Fade transitions using the blend unit
pub mod transitions;

/// Re-exports of the most commonly used items
pub mod prelude {
    pub use crate::TILE_SIZE;
    pub use crate::backgrounds::*;
    pub use crate::button_highlight::*;
    pub use crate::direction::*;
    pub use crate::gfx::*;
    pub use crate::menu_cursor::*;
    pub use crate::rng::*;
    pub use crate::scrolling_cursor::*;
    pub use crate::transitions::*;
}

/// Size of a background tile in pixels
pub const TILE_SIZE: i32 = 8;

#[allow(clippy::empty_loop)]
#[cfg(test)]
#[agb::entry]
fn main(_gba: agb::Gba) -> ! {
    loop {}
}