remove wildcard imports

This commit is contained in:
Felix Ableitner 2021-10-06 17:47:04 +02:00
parent 4b176baabf
commit 61a88f44aa
2 changed files with 14 additions and 6 deletions

View file

@ -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;

View file

@ -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()
} }
} }