diff --git a/src/camera.rs b/src/camera.rs new file mode 100644 index 0000000..f5c21dd --- /dev/null +++ b/src/camera.rs @@ -0,0 +1,33 @@ +use bevy::prelude::*; + +use crate::player::*; + +pub struct Camera; +pub fn camera_follow_player( + player: Query<(&Transform, &Player), Without>, + mut camera: Query<(&mut Transform, &Camera), Without>, + time: Res