The UI parts will end up in "widgets.rs". Buttons, labels, etc. The "contsants.rs" module is meant to have compile-time configurables. Bevy's reflection abilities make it possible to alter these at runtime, which means this module will actually have the startup defaults rather than true program constants.
21 lines
494 B
Rust
21 lines
494 B
Rust
use bevy::{prelude::*, window::WindowResolution};
|
|
use bevy_inspector_egui::{bevy_egui::EguiPlugin, quick::WorldInspectorPlugin};
|
|
|
|
mod card;
|
|
mod constants;
|
|
mod widgets;
|
|
|
|
fn main() {
|
|
App::new()
|
|
.add_plugins(DefaultPlugins.set(WindowPlugin {
|
|
primary_window: Some(Window {
|
|
resolution: WindowResolution::new(800.0, 600.0),
|
|
..default()
|
|
}),
|
|
..default()
|
|
}))
|
|
.add_plugins(EguiPlugin::default())
|
|
.add_plugins(WorldInspectorPlugin::new())
|
|
.run();
|
|
}
|