You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
919 B
Rust

/// Camera controller
pub(crate) mod camera;
/// ECS scheduling `run_if` conditions
pub(crate) mod conditions;
/// Editor: debugging and run-time modifications to the game
pub(crate) mod editor;
/// Menu: Main and otherwise
pub(crate) mod menu;
/// Helper module containing common imports across the project
pub(crate) mod prelude;
/// Window handling
pub(crate) mod window;
use crate::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins.set(WindowPlugin {
// handled in crate::window::handle_window_close and crate::editor::handle_window_close
close_when_requested: false,
exit_condition: bevy::window::ExitCondition::OnPrimaryClosed,
..default()
}))
.add_plugins(camera::CameraPlugin)
.add_plugins(editor::EditorPlugin)
.add_plugins(menu::MenuPlugin)
.add_plugins(window::WindowPlugin)
.run();
}