mgd2-tram-championships/src/main.rs

27 lines
506 B
Rust
Raw Normal View History

2025-05-14 13:28:18 +02:00
use bevy::prelude::*;
mod camera;
mod cleanup;
2025-05-21 15:56:23 +02:00
mod debugging;
mod game;
2025-05-21 15:56:23 +02:00
#[derive(States, Default, Debug, Clone, PartialEq, Eq, Hash, Reflect)]
#[allow(unused)]
enum AppState {
Menus,
#[default]
Ingame,
PostGame,
}
2025-05-14 13:28:18 +02:00
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, camera::setup)
2025-05-21 15:56:23 +02:00
.add_plugins(game::plugin)
.init_state::<AppState>()
.register_type::<AppState>()
.add_plugins(debugging::plugin)
2025-05-14 13:28:18 +02:00
.run();
}