2023-11-11 21:58:00 +00:00
|
|
|
use bevy::prelude::*;
|
2023-11-01 11:44:37 +00:00
|
|
|
use bevy_editor_pls::prelude::*;
|
|
|
|
|
|
|
|
mod core;
|
|
|
|
use crate::core::*;
|
|
|
|
|
|
|
|
pub mod assets;
|
|
|
|
use assets::*;
|
|
|
|
|
|
|
|
pub mod state;
|
|
|
|
use state::*;
|
|
|
|
|
|
|
|
mod game;
|
|
|
|
use game::*;
|
|
|
|
|
|
|
|
mod test_components;
|
|
|
|
use test_components::*;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
App::new()
|
|
|
|
.add_plugins((
|
2023-11-11 21:58:00 +00:00
|
|
|
DefaultPlugins.set(AssetPlugin::default()),
|
2023-11-01 11:44:37 +00:00
|
|
|
// editor
|
|
|
|
EditorPlugin::default(),
|
|
|
|
// our custom plugins
|
|
|
|
StatePlugin,
|
|
|
|
AssetsPlugin,
|
|
|
|
CorePlugin, // reusable plugins
|
|
|
|
GamePlugin, // specific to our game
|
|
|
|
ComponentsTestPlugin, // Showcases different type of components /structs
|
|
|
|
))
|
|
|
|
.run();
|
|
|
|
}
|