Revert "use only required plugins"

This reverts commit 5384ea2ec9.
This commit is contained in:
yuni 2024-03-16 23:05:07 +01:00
parent 5384ea2ec9
commit 3ab0a82181

View file

@ -4,17 +4,8 @@ mod camera;
mod world;
mod settings;
use bevy::a11y::AccessibilityPlugin;
use bevy::audio::AudioPlugin;
use bevy::input::InputPlugin;
use bevy::log::LogPlugin;
use bevy::prelude::*;
use bevy::render::RenderPlugin;
use bevy::window::{Window, WindowMode, PrimaryWindow, CursorGrabMode };
use bevy::scene::ScenePlugin;
use bevy::core_pipeline::CorePipelinePlugin;
use bevy::pbr::PbrPlugin;
use bevy::winit::WinitPlugin;
use bevy::prelude::*;
fn main() {
App::new()
@ -31,22 +22,7 @@ fn main() {
audio::toggle_bgm,
world::asset_loaded.after(world::load_cubemap_asset),
))
.add_plugins((
LogPlugin::default(),
MinimalPlugins,
TransformPlugin,
InputPlugin,
WindowPlugin::default(),
AccessibilityPlugin,
AssetPlugin::default(),
ScenePlugin::default(),
WinitPlugin::default(),
RenderPlugin::default(),
ImagePlugin::default_nearest(),
CorePipelinePlugin::default(),
PbrPlugin::default(),
AudioPlugin::default(),
))
.add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest()))
.add_plugins(camera::CameraControllerPlugin)
.run();
}