#bevy-plugin #texture-atlas #bevy #palette #graphics #text-mode

bevy_text_mode

Bevy plugin adding a texture atlas sprite with configurable background and foreground colors

4 releases (2 breaking)

0.3.0 Mar 12, 2024
0.2.0 Aug 4, 2023
0.1.1 Apr 4, 2023
0.1.0 Mar 12, 2023

#318 in Game dev

Download history 4/week @ 2024-02-18 5/week @ 2024-02-25 119/week @ 2024-03-10 7/week @ 2024-03-17

131 downloads per month

Apache-2.0

46KB
995 lines

bevy_text_mode

bevy

bevy_text_mode adds a TextModeSprite component with configurable background and foreground colors. It makes it easy to use text mode tilesets such as MRMOTEXT.

pub struct TextModeSprite {
    pub bg: Color,
    pub fg: Color,
    pub alpha: f32,
    pub flip_x: bool,
    pub flip_y: bool,
    pub rotation: u8,
    pub custom_size: Option<Vec2>,
    pub rect: Option<Rect>,
    pub anchor: Anchor,
}

Usage

Spawn a TextModeSpriteBundle with desired background and foreground colors.

Compatible Bevy versions

bevy_text_mode bevy
0.3.0 0.13
0.2.0 0.11
0.1.1 0.10

Dependencies

~39–82MB
~1M SLoC