mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-07-03 10:37:39 +00:00
start map stuff
This commit is contained in:
parent
684fdd5558
commit
67383ac1db
8 changed files with 476 additions and 123 deletions
14
src/main.rs
14
src/main.rs
|
@ -1,5 +1,6 @@
|
|||
#![feature(iter_collect_into)]
|
||||
use bevy::prelude::*;
|
||||
use bevy_skein::SkeinPlugin;
|
||||
|
||||
mod camera;
|
||||
mod cleanup;
|
||||
|
@ -18,13 +19,16 @@ enum AppState {
|
|||
|
||||
fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.register_type::<TPCTarget>()
|
||||
.add_systems(Startup, camera::setup)
|
||||
.add_plugins(game::plugin)
|
||||
.add_plugins(menus::plugin)
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_plugins((game::plugin, menus::plugin, debugging::plugin))
|
||||
.add_plugins(SkeinPlugin::default())
|
||||
.init_state::<AppState>()
|
||||
.add_plugins(debugging::plugin)
|
||||
.register_type::<AppState>()
|
||||
// .insert_state(AppState::Ingame)
|
||||
.run();
|
||||
}
|
||||
|
||||
#[derive(Debug, Reflect, Component)]
|
||||
#[reflect(Component)]
|
||||
struct TPCTarget;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue