Crates.io | bevy_terminal_display |
lib.rs | bevy_terminal_display |
version | |
source | src |
created_at | 2024-07-24 16:05:54.547541 |
updated_at | 2024-12-20 13:12:29.155919 |
description | A plugin for the Bevy game engine which enables rendering to a terminal using unicode braille characters. |
homepage | |
repository | https://git.exvacuum.dev/bevy_terminal_display |
max_upload_size | |
id | 1314125 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A (very experimental) plugin for the Bevy engine which allows for rendering to a terminal window.
WARNING: I highly recommend using the kitty terminal emulator with this, not only due to the gpu-accelerated rendering, but also the implementation of the kitty protocol which enables the advanced input detection.
Features Include:
TerminalDisplay
automatically sets up a correctly-formatted render textureTerminalInput
resource which keeps track of pressed & released keysWidget
component for rendering ratatui TUI widgetsTerminalWidget
trait for creating custom TUI widget componentsCrate Version | Bevy Version |
---|---|
0.6 | 0.15 |
0.4 | 0.14 |
0.2 | 0.13 |
[dependencies]
bevy_terminal_display = "0.5"
[dependencies.bevy_terminal_display]
git = "https://git.exvacuum.dev/bevy_terminal_display"
In main.rs
:
use bevy::prelude::*;
use bevy_terminal_display;
fn main() {
App::new()
.add_plugins((
DefaultPlugins.build().disable::<WinitPlugin>().disable::<LogPlugin>,
ScheduleRunnerPlugin::run_loop(Duration::from_secs_f32(1.0 / 60.0)),
bevy_terminal_display::TerminalDisplayPlugin::default(),
))
.run();
}
When spawning a camera:
commands.spawn((
// Camera3d...
TerminalDisplay(3), // Field is level of dithering
));
This crate is licensed under your choice of 0BSD, Apache-2.0, or MIT license.