autoformat
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user