|
|
|
@ -4,8 +4,15 @@ mod ant; |
|
|
|
|
mod constants; |
|
|
|
|
|
|
|
|
|
use crate::ant::Ant; |
|
|
|
|
use constants::{MAP_HEIGHT, MAP_WIDTH}; |
|
|
|
|
use macroquad::prelude::*; |
|
|
|
|
use constants::*; |
|
|
|
|
use macroquad::color::*; |
|
|
|
|
use macroquad::input::{ |
|
|
|
|
is_key_down, is_mouse_button_down, is_quit_requested, mouse_position, KeyCode, MouseButton, |
|
|
|
|
}; |
|
|
|
|
use macroquad::miniquad::conf::Conf; |
|
|
|
|
use macroquad::prelude::{ |
|
|
|
|
clear_background, draw_texture, get_frame_time, next_frame, Image, Texture2D, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
fn window_conf() -> Conf { |
|
|
|
|
Conf { |
|
|
|
@ -13,6 +20,7 @@ fn window_conf() -> Conf { |
|
|
|
|
fullscreen: false, |
|
|
|
|
window_width: MAP_WIDTH as i32, |
|
|
|
|
window_height: MAP_HEIGHT as i32, |
|
|
|
|
window_resizable: false, |
|
|
|
|
..Default::default() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|