remove wildcard imports
This commit is contained in:
parent
4b176baabf
commit
61a88f44aa
2 changed files with 14 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
use crate::constants::ANT_SPEED;
|
use crate::constants::*;
|
||||||
use crate::constants::MAP_HEIGHT;
|
use macroquad::color::*;
|
||||||
use crate::constants::MAP_WIDTH;
|
use macroquad::math::Vec2;
|
||||||
use macroquad::prelude::*;
|
use macroquad::prelude::Image;
|
||||||
use macroquad::rand::RandomRange;
|
use macroquad::rand::RandomRange;
|
||||||
use std::f32::consts::PI;
|
use std::f32::consts::PI;
|
||||||
|
|
||||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -4,8 +4,15 @@ mod ant;
|
||||||
mod constants;
|
mod constants;
|
||||||
|
|
||||||
use crate::ant::Ant;
|
use crate::ant::Ant;
|
||||||
use constants::{MAP_HEIGHT, MAP_WIDTH};
|
use constants::*;
|
||||||
use macroquad::prelude::*;
|
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 {
|
fn window_conf() -> Conf {
|
||||||
Conf {
|
Conf {
|
||||||
|
@ -13,6 +20,7 @@ fn window_conf() -> Conf {
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
window_width: MAP_WIDTH as i32,
|
window_width: MAP_WIDTH as i32,
|
||||||
window_height: MAP_HEIGHT as i32,
|
window_height: MAP_HEIGHT as i32,
|
||||||
|
window_resizable: false,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue