use bevy::{ math::{ivec2, 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) .add_systems(FixedUpdate, (update_tiles1_system, update_tiles2_system)) .insert_resource(Time::::from_seconds(0.05)) .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