From 61a88f44aa669ac086a66a6527652e9d2dd04ea3 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 6 Oct 2021 17:47:04 +0200 Subject: [PATCH] remove wildcard imports --- src/ant.rs | 8 ++++---- src/main.rs | 12 ++++++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/ant.rs b/src/ant.rs index b9c6245..9a23ca3 100644 --- a/src/ant.rs +++ b/src/ant.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; diff --git a/src/main.rs b/src/main.rs index 02b361f..4d8328a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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() } }