Background

This commit is contained in:
2026-09-16 00:15:41 +02:00
parent bab6912fb5
commit 2fe5ff9974
2 changed files with 4 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
use bevy::prelude::*;
+3 -5
View File
@@ -1,7 +1,9 @@
use bevy::{prelude::*, window::PresentMode};
use crate::camera::CameraPlugin as OtherCameraPlugin;
use crate::player::PlayerPlugin;
mod background;
mod camera;
mod player;
@@ -17,11 +19,7 @@ fn main() {
..default()
}))
.insert_resource(ClearColor(Color::srgb(0.0, 0.0, 0.0)))
.add_systems(Startup, setup)
.add_plugins(PlayerPlugin) // Player
.add_plugins(OtherCameraPlugin) // Camera
.run();
}
fn setup(mut commands: Commands) {
commands.spawn(Camera2d);
}