Skip to content
Snippets Groups Projects
main.rs 795 B
Newer Older
Louis's avatar
Louis committed
use bevy::prelude::*;
Louis's avatar
v2  
Louis committed
use game_core::assets::AssetHandles;
Louis's avatar
Louis committed
use game_core::system::flow::AppState;
use game_core::system::resources::DefaultResourcesPlugin;
Louis's avatar
Louis committed
use iyes_loopless::prelude::AppLooplessStateExt;
Louis's avatar
v2  
Louis committed
use micro_musicbox::CombinedAudioPlugins;
use remote_events::RemoteEventPlugin;
Louis's avatar
Louis committed

fn main() {
	App::new()
		.add_loopless_state(AppState::Preload)
		.add_plugin(DefaultResourcesPlugin)
		.add_plugins(DefaultPlugins)
		.add_plugin(game_core::assets::AssetsPlugin)
Louis's avatar
v2  
Louis committed
		.add_plugins(CombinedAudioPlugins::<AssetHandles>::new())
Louis's avatar
Louis committed
		.add_plugin(game_core::splash_screen::SplashScreenPlugin)
		.add_plugin(game_core::system::camera::CameraManagementPlugin)
		.add_plugin(RemoteEventPlugin::<
			game_core::multiplayer::OutgoingEvent,
			game_core::multiplayer::IncomingEvent,
		>::new())
Louis's avatar
Louis committed
		.run();
}