mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-06-12 02:47:38 +00:00
debugging!!
This commit is contained in:
parent
6d269d0c14
commit
f518a2c670
4 changed files with 25 additions and 9 deletions
|
@ -2,9 +2,10 @@ use bevy::prelude::*;
|
|||
|
||||
mod camera;
|
||||
mod cleanup;
|
||||
mod debugging;
|
||||
mod game;
|
||||
|
||||
#[derive(States, Default, Debug, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(States, Default, Debug, Clone, PartialEq, Eq, Hash, Reflect)]
|
||||
#[allow(unused)]
|
||||
enum AppState {
|
||||
Menus,
|
||||
|
@ -16,8 +17,10 @@ enum AppState {
|
|||
fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.init_state::<AppState>()
|
||||
.add_plugins(game::plugin)
|
||||
.add_systems(Startup, camera::setup)
|
||||
.add_plugins(game::plugin)
|
||||
.init_state::<AppState>()
|
||||
.register_type::<AppState>()
|
||||
.add_plugins(debugging::plugin)
|
||||
.run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue