use std::ops::Range; use bevy::{math::uvec2, prelude::*, window::WindowResolution}; use bevy_simple_tilemap::prelude::*; fn main() { App::new() .add_plugins( DefaultPlugins .set(WindowPlugin { primary_window: Some(Window { resolution: WindowResolution::new(1280.0, 720.0).with_scale_factor_override(1.0), ..Default::default() }), ..default() }) .set(ImagePlugin::default_nearest()), ) .add_plugins(SimpleTileMapPlugin) .add_systems(Startup, setup) .add_systems(Update, (input_system, update_tiles_system)) .run(); } fn input_system( mut camera_transform_query: Query<&mut Transform, With>, mut tilemap_visible_query: Query<&mut Visibility, With>, keyboard_input: Res>, time: Res