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 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)]

View File

@@ -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,

View File

@@ -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);