camera zooming
This commit is contained in:
+19
-19
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user