autoformat

This commit is contained in:
2025-08-11 22:48:08 -05:00
parent d8a83b77c2
commit c1b69c412a
3 changed files with 11 additions and 4 deletions

View File

@@ -8,7 +8,11 @@ use std::time::Duration;
use bevy::prelude::*; use bevy::prelude::*;
use crate::{ 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)] #[derive(Resource)]

View File

@@ -7,7 +7,7 @@ mod preparation_widget;
mod ship; mod ship;
mod title_screen; mod title_screen;
use crate::asteroids::{AsteroidSpawner}; use crate::asteroids::AsteroidSpawner;
use crate::config::{ use crate::config::{
ASTEROID_SMALL_COLOR, BACKGROUND_COLOR, BULLET_COLOR, BULLET_LIFETIME, BULLET_SPEED, ASTEROID_SMALL_COLOR, BACKGROUND_COLOR, BULLET_COLOR, BULLET_LIFETIME, BULLET_SPEED,
PLAYER_SHIP_COLOR, SHIP_ROTATION, SHIP_THRUST, SHIP_THRUSTER_COLOR_ACTIVE, PLAYER_SHIP_COLOR, SHIP_ROTATION, SHIP_THRUST, SHIP_THRUSTER_COLOR_ACTIVE,

View File

@@ -2,7 +2,10 @@
//! //!
//! Asteroids, the player's ship, and such. //! 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)] #[derive(Component, Deref, DerefMut)]
pub struct Asteroid(pub AsteroidSize); pub struct Asteroid(pub AsteroidSize);