use core::render::Renderer;
-use sdl2::rect::Rect;
-
-use common::Point;
+use geometry::Point;
use sdl2::gfx::primitives::DrawRenderer;
+use sdl2::rect::Rect;
use {SCREEN_HEIGHT, SCREEN_WIDTH};
pub trait Boll {
-mod geometry;
-pub use common::geometry::{
- Point,
- Dimension,
- Angle,
- ToAngle,
- Intersection,
- supercover_line,
-};
-
mod time;
pub use common::time::ScopeTimer;
use boll::*;
-use common::{Point, Dimension};
use core::controller::ControllerManager;
use core::render::Renderer;
+use geometry::{Point, Dimension};
use point; // defined in common, but loaded from main...
use rand::Rng;
use sdl2::event::{Event, WindowEvent};
-use common::{Angle, Point};
+use geometry::{Angle, Point};
use {hashmap, point};
use sdl2::HapticSubsystem;
use sdl2::JoystickSubsystem;
-use teststate::TestState;
use AppState;
-use common::{Point, ToAngle};
use core::app::StateChange;
use core::controller::Controller;
use core::controller::ControllerManager;
use core::level::{Level, LevelGenerator, Wall, IntersectResult::Intersection};
use core::render::Renderer;
+use geometry::{Point, ToAngle};
use point;
use sdl2::event::Event;
use sdl2::joystick::PowerLevel;
use sprites::SpriteManager;
use std::cell::RefCell;
use std::rc::Rc;
+use teststate::TestState;
use time::Duration;
////////// GAMESTATE ///////////////////////////////////////////////////////////
-use common::{Point, Dimension};
+use geometry::{Point, Dimension};
use noise::{NoiseFn, OpenSimplex, Seedable};
use rand::Rng;
use super::{Grid, Level, WallRegion};
-use common::{Point, Dimension, Intersection, Angle, ToAngle, supercover_line};
use core::render::Renderer;
+use geometry::{Point, Dimension, Intersection, Angle, ToAngle, supercover_line};
use sprites::SpriteManager;
use std::rc::Rc;
use {point, dimen};
use core::game::GameState;
use core::app::*;
-mod teststate;
-mod core;
-#[macro_use]
-mod common;
mod boll;
+mod common;
+mod core;
+mod geometry;
mod sprites;
+mod teststate;
const SCREEN_WIDTH: u16 = 1280;
const SCREEN_HEIGHT: u16 = (SCREEN_WIDTH as f64 * (1440.0 / 2560.0)) as u16;
-use common::{Dimension, Point, Intersection};
use core::app::{AppState, StateChange};
use core::controller::ControllerManager;
use core::level::Grid;
use core::render::Renderer;
-use {point, dimen};
+use geometry::{Dimension, Point, Intersection};
use sdl2::event::Event;
use sprites::SpriteManager;
use time::{Duration, Instant};
+use {point, dimen};
pub struct TestState {
start: Instant,