bracket-terminal 0.8.7

ASCII/Codepage 437 terminal emulator with a game loop. Defaults to OpenGL, also support WebGPU (for Vulkan/Metal/WGPU), Curses and Crossterm for output. Part of the bracket-lib family.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use bracket_geometry::prelude::Rect;

#[derive(Copy, Clone, Debug)]
pub struct Sprite {
    pub sheet_location: Rect,
}

impl Sprite {
    pub fn new(sheet_location: Rect) -> Self {
        Sprite { sheet_location }
    }
}