cyber_rider/src/main.rs

32 lines
1 KiB
Rust
Raw Normal View History

2021-11-06 05:32:55 +00:00
use bevy::prelude::*;
use cyber_rider::{
2023-02-05 22:59:41 +00:00
action::CyberActionPlugin, bike::CyberBikePlugin, camera::CyberCamPlugin, disable_mouse_trap,
glamor::CyberGlamorPlugin, input::CyberInputPlugin, lights::CyberSpaceLightsPlugin,
planet::CyberPlanetPlugin, ui::CyberUIPlugin,
};
2021-11-06 05:32:55 +00:00
fn main() {
2022-01-14 06:05:51 +00:00
let mut app = App::new();
app.insert_resource(Msaa { samples: 4 })
2023-01-20 22:40:51 +00:00
.add_plugins(DefaultPlugins.set(WindowPlugin {
window: WindowDescriptor {
width: 2560.0,
height: 1440.0,
..Default::default()
},
..Default::default()
2023-01-20 22:40:51 +00:00
}))
.add_plugin(CyberPlanetPlugin)
2022-01-14 06:05:51 +00:00
.add_plugin(CyberGlamorPlugin)
.add_plugin(CyberInputPlugin)
.add_plugin(CyberActionPlugin)
.add_plugin(CyberCamPlugin)
.add_plugin(CyberSpaceLightsPlugin)
.add_plugin(CyberUIPlugin)
.add_plugin(CyberBikePlugin)
.add_startup_system(disable_mouse_trap)
.add_system(bevy::window::close_on_esc);
2022-01-14 06:05:51 +00:00
app.run();
2021-11-06 05:32:55 +00:00
}