camera zooming

This commit is contained in:
2025-05-09 18:13:28 +01:00
parent e3ea662668
commit 31e6eb29b2
7 changed files with 96 additions and 64 deletions
+19 -19
View File
@@ -328,26 +328,26 @@ fn blit_texture_with_alpha(
}
// This system handles updating quilted sprites when the world changes
pub fn update_quilts_on_world_change(
mut commands: Commands,
mut quilt_cache: ResMut<QuiltCache>,
mut cwss: ResMut<CurrentWorldSpriteState>,
// Add any resources or queries that indicate world changes
// For example, if you have a WorldChangeEvent:
// mut world_changes: EventReader<WorldChangeEvent>,
) {
// Example: Check for world changes
// if !world_changes.is_empty() {
// for event in world_changes.iter() {
// quilt_cache.dirty_indices.push(event.z_index);
// }
// cwss.state = WorldSpriteState::WaitingForRender;
// }
// pub fn update_quilts_on_world_change(
// mut commands: Commands,
// mut quilt_cache: ResMut<QuiltCache>,
// mut cwss: ResMut<CurrentWorldSpriteState>,
// Add any resources or queries that indicate world changes
// For example, if you have a WorldChangeEvent:
// mut world_changes: EventReader<WorldChangeEvent>,
// ) {
// Example: Check for world changes
// if !world_changes.is_empty() {
// for event in world_changes.iter() {
// quilt_cache.dirty_indices.push(event.z_index);
// }
// cwss.state = WorldSpriteState::WaitingForRender;
// }
// Alternatively, if you have specific systems that modify the world,
// you could have them set cwss.state = WorldSpriteState::WaitingForRender
// and add affected z-indices to quilt_cache.dirty_indices
}
// Alternatively, if you have specific systems that modify the world,
// you could have them set cwss.state = WorldSpriteState::WaitingForRender
// and add affected z-indices to quilt_cache.dirty_indices
// }
#[derive(Bundle)]
pub struct FloorTilePrefab {