diff --git a/src/asteroids.rs b/src/asteroids.rs index ff43e68..0acfd94 100644 --- a/src/asteroids.rs +++ b/src/asteroids.rs @@ -8,7 +8,11 @@ use std::time::Duration; use bevy::prelude::*; use crate::{ - config::ASTEROID_LIFETIME, events::{AsteroidDestroy, SpawnAsteroid}, objects::{Asteroid, AsteroidSize}, physics::Velocity, GameAssets, Lifetime, WorldSize + GameAssets, Lifetime, WorldSize, + config::ASTEROID_LIFETIME, + events::{AsteroidDestroy, SpawnAsteroid}, + objects::{Asteroid, AsteroidSize}, + physics::Velocity, }; #[derive(Resource)] diff --git a/src/lib.rs b/src/lib.rs index e554afc..841a769 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ mod preparation_widget; mod ship; mod title_screen; -use crate::asteroids::{AsteroidSpawner}; +use crate::asteroids::AsteroidSpawner; use crate::config::{ ASTEROID_SMALL_COLOR, BACKGROUND_COLOR, BULLET_COLOR, BULLET_LIFETIME, BULLET_SPEED, PLAYER_SHIP_COLOR, SHIP_ROTATION, SHIP_THRUST, SHIP_THRUSTER_COLOR_ACTIVE, diff --git a/src/objects.rs b/src/objects.rs index 77674eb..2af4610 100644 --- a/src/objects.rs +++ b/src/objects.rs @@ -1,8 +1,11 @@ //! This module contains all the "things" in the game. -//! +//! //! Asteroids, the player's ship, and such. -use bevy::{ecs::component::Component, prelude::{Deref, DerefMut}}; +use bevy::{ + ecs::component::Component, + prelude::{Deref, DerefMut}, +}; #[derive(Component, Deref, DerefMut)] pub struct Asteroid(pub AsteroidSize);