5 releases (3 breaking)
0.4.0 | Jul 19, 2024 |
---|---|
0.3.0 | Mar 12, 2024 |
0.2.0 | Aug 4, 2023 |
0.1.1 | Apr 4, 2023 |
0.1.0 | Mar 12, 2023 |
#295 in Game dev
23 downloads per month
50KB
1K
SLoC
bevy_text_mode
bevy_text_mode
adds aTextModeSprite
component with configurable background and foreground colors. It makes it easy to use text mode tilesets such as MRMOTEXT.
pub struct TextModeSprite {
pub bg: LinearRgba,
pub fg: LinearRgba,
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 the desired background and foreground colors.
Compatible Bevy versions
bevy_text_mode |
bevy |
---|---|
0.4.0 | 0.14 |
0.3.0 | 0.13 |
0.2.0 | 0.11 |
0.1.1 | 0.10 |
Dependencies
~37–74MB
~1.5M SLoC