use macroquad::prelude::*; fn window_conf() -> Conf { Conf { fullscreen: false, window_width: 1280, window_height: 720, ..Default::default() } } #[macroquad::main(window_conf)] async fn main() { let map = load_texture("map_scaled.png").await.unwrap(); loop { clear_background(BEIGE); draw_texture(map, 0., 0., WHITE); if is_key_down(KeyCode::Escape) || is_quit_requested() { return; } next_frame().await } }