2021-10-03 10:39:27 +00:00
|
|
|
use macroquad::prelude::*;
|
|
|
|
|
|
|
|
fn window_conf() -> Conf {
|
|
|
|
Conf {
|
|
|
|
fullscreen: false,
|
|
|
|
window_width: 1280,
|
|
|
|
window_height: 720,
|
|
|
|
..Default::default()
|
|
|
|
}
|
2021-10-03 10:19:24 +00:00
|
|
|
}
|
2021-10-03 10:39:27 +00:00
|
|
|
|
|
|
|
#[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
|
|
|
|
}
|
|
|
|
}
|