new: project bootstrap

This commit is contained in:
Matthew Ryan Dillon 2024-08-15 17:36:15 -04:00
commit 5ea7f6de91
4 changed files with 4784 additions and 0 deletions

16
src/main.rs Normal file
View file

@ -0,0 +1,16 @@
use bevy::prelude::*;
use bevy_egui::{egui, EguiContexts, EguiPlugin};
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(EguiPlugin)
.add_systems(Update, ui_example_system)
.run();
}
fn ui_example_system(mut contexts: EguiContexts) {
egui::Window::new("Hello").show(contexts.ctx_mut(), |ui| {
ui.label("world");
});
}