Newer
Older
use bevy::prelude::*;
use game_core::assets::AssetHandles;
use game_core::system::flow::AppState;
use iyes_loopless::prelude::AppLooplessStateExt;
fn main() {
App::new()
.add_loopless_state(AppState::Preload)
.add_plugins(game_core::system::resources::InitAppPlugins)
.add_plugins(micro_musicbox::CombinedAudioPlugins::<AssetHandles>::new())
.add_plugin(game_core::splash_screen::SplashScreenPlugin)
.add_plugin(game_core::system::camera::CameraManagementPlugin)
.add_plugin(game_core::states::StatesPlugin)
.add_plugin(micro_asset_io::MicroAssetIOPlugin)
.add_plugin(bevy_tweening::TweeningPlugin)
.add_plugin(bevy_ecs_tilemap::TilemapPlugin)
.add_plugins(game_core::ui::AdventUIPlugins)
.add_plugin(game_core::persistance::PersistencePlugin)
.add_plugin(bevy_prototype_lyon::plugin::ShapePlugin)