use bevy::prelude::*; use crate::player::Player; use crate::player::move_player; #[derive(Component)] pub struct MainCamera; fn spawn_main_camera(mut commands: Commands) { commands.spawn((Camera2d, MainCamera)); } // Follow the player with the camera fn follow_player( player: Single<&Transform, (With, Without)>, mut camera: Single<&mut Transform, (With, Without)>, // time: Res