44 releases
Uses new Rust 2024
new 0.17.0 | Apr 28, 2025 |
---|---|
0.16.6 | Mar 9, 2025 |
0.16.2 | Feb 27, 2025 |
0.15.0 | Mar 17, 2024 |
0.7.4 | Nov 24, 2021 |
#147 in Game dev
137 downloads per month
Used in 2 crates
210KB
3.5K
SLoC
Bevy Ascii Terminal
A simple ascii terminal integrated into bevy's ecs framework.
The goal of this crate is to provide a simple, straightforward, and hopefully fast method for rendering colorful ascii in bevy. It was made with "traditional roguelikes" in mind, but should serve as a simple UI tool if needed.
Code Example
use bevy::prelude::*;
use bevy_ascii_terminal::*;
fn main() {
App::new()
.add_plugins((DefaultPlugins, TerminalPlugins))
.add_systems(Startup, setup)
.run();
}
fn setup(mut commands: Commands) {
commands.spawn((
Terminal::new([12, 1]).with_string([0, 0], "Hello world!".fg(color::BLUE)),
TerminalBorder::single_line(),
));
commands.spawn(TerminalCamera::new());
}
Versions
bevy | bevy_ascii_terminal |
---|---|
0.16 | 0.17.* |
0.15 | 0.16.* |
0.13 | 0.15.0 |
0.12 | 0.14.0 |
0.11 | 0.13.0 |
0.9 | 0.12.1 |
0.8.1 | 0.11.1-4 |
0.8 | 0.11 |
0.7 | 0.9-0.10 |
Bevy Ascii Terminal Projects
(Note these were built on earlier versions and haven't been updated in a while)
Bevy Roguelike - Source - WASM
Credits
Built in fonts were put together from various sources and modified only to make them uniform by changing background colors and adding the empty box drawing character from rexpaint (□
):
- Px437 - https://int10h.org/oldschool-pc-fonts/
- ZxEvolution - https://www.gridsagegames.com/rexpaint/resources.html
- Pastiche - https://dwarffortresswiki.org/index.php/DF2014:Tileset_repository
- Rexpaint - https://www.gridsagegames.com/rexpaint/resources.html
- Unscii - https://github.com/viznut/unscii
- Taffer - https://dwarffortresswiki.org/index.php/DF2014:Tileset_repository
- TaritusCurses - https://dwarffortresswiki.org/index.php/DF2014:Tileset_repository
- JtCurses - https://dwarffortresswiki.org/index.php/DF2014:Tileset_repository
- SazaroteCurses - Unknown
Rexpaint loader - https://docs.rs/rexpaint/latest/rexpaint/
Dependencies
~50–88MB
~1.5M SLoC