Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenMian committed Jun 19, 2024
1 parent 76e2bd4 commit 1c5ea89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/systems/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn handle_reset_camera_translate_event(

let mut camera = camera.single_mut();
camera.translation.x = (size.x - tilesheet.tile_size.x) / 2.0;
camera.translation.y = -(size.y - tilesheet.tile_size.y) / 2.0;
camera.translation.y = -((size.y - tilesheet.tile_size.y) / 2.0);
}

pub fn handle_window_resized_event(
Expand Down
2 changes: 1 addition & 1 deletion src/systems/level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ pub fn respawn(
reset_camera_scale_events.send_default();
reset_camera_translate_events.send_default();

println!("Level #{}", level_id.0)
info!("Level #{}", level_id.0)
}
12 changes: 6 additions & 6 deletions src/systems/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bevy::prelude::*;
// use bevy::prelude::*;

fn cleanup<T: Component>(mut commands: Commands, query: Query<Entity, With<T>>) {
for entity in query.iter() {
commands.entity(entity).despawn_recursive();
}
}
// fn cleanup<T: Component>(mut commands: Commands, query: Query<Entity, With<T>>) {
// for entity in query.iter() {
// commands.entity(entity).despawn_recursive();
// }
// }

0 comments on commit 1c5ea89

Please sign in to comment.