Collision base

This commit is contained in:
2026-06-29 13:07:49 +03:00
parent 8d2ed11e73
commit 93408306ea
6 changed files with 64 additions and 39 deletions
+4 -4
View File
@@ -24,7 +24,7 @@ pub fn update_automation_view(
let (sprite, automation) = query.into_inner();
let image = automation.world.get_image_data();
images.remove(sprite.image.id());
// images.remove(sprite.image.id());
images.insert(sprite.image.id(), image).unwrap();
commands.entity(request.into_inner().1).despawn();
@@ -60,7 +60,7 @@ pub fn update_automation(
if keys.just_pressed(KeyCode::AltRight) {
automation.smooth();
commands.spawn((ViewRedrawRequest));
}
if keys.just_pressed(KeyCode::KeyS) {
@@ -226,7 +226,7 @@ pub fn setup_hex_matrix(
let sprite = view_query.iter().next().unwrap();
images.remove(sprite.image.id());
// images.remove(sprite.image.id());
images.insert(sprite.image.id(), image).unwrap();
commands.spawn(
(HexMatrixBuild {
@@ -254,7 +254,7 @@ pub fn update_hex_matrix_view(
let sprite = view_query.iter().next().unwrap();
images.remove(sprite.image.id());
// images.remove(sprite.image.id());
images.insert(sprite.image.id(), image).unwrap();
}
#[derive(Component)]