remove wildcard imports

main
Felix Ableitner 11 months ago
parent 4b176baabf
commit 61a88f44aa
  1. 8
      src/ant.rs
  2. 12
      src/main.rs

@ -1,7 +1,7 @@
use crate::constants::ANT_SPEED;
use crate::constants::MAP_HEIGHT;
use crate::constants::MAP_WIDTH;
use macroquad::prelude::*;
use crate::constants::*;
use macroquad::color::*;
use macroquad::math::Vec2;
use macroquad::prelude::Image;
use macroquad::rand::RandomRange;
use std::f32::consts::PI;

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

Loading…
Cancel
Save