Commit 12b78a6a authored by Rahix's avatar Rahix 🦀
Browse files

systems: moving: Rename to move_camera_to_player

parent 5fdc9eb1
......@@ -36,9 +36,10 @@ impl InGameState {
let schedule = legion::Schedule::builder()
.add_system(colliders::synchronize_collisision_world_system())
.flush()
.add_thread_local(systems::moving_system())
.add_system(colliders::update_collision_world_system())
.flush()
.add_thread_local(systems::move_camera_to_player_system())
.flush()
.add_thread_local(systems::camera_system())
.flush()
.add_thread_local(systems::draw_level_layer_system(background))
......
......@@ -5,5 +5,5 @@ mod tmp_player;
pub use camera::camera_system;
pub use level::draw_level_layer_system;
pub use moving::moving_system;
pub use moving::move_camera_to_player_system;
pub use tmp_player::draw_tmp_player_system;
......@@ -4,7 +4,7 @@ use legion::IntoQuery;
#[legion::system]
#[read_component(components::Position)]
pub fn moving(
pub fn move_camera_to_player(
world: &legion::world::SubWorld,
#[resource] camera: &mut resources::Camera,
#[resource] player: &resources::Player,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment