Minor cleanup

master
Mark 2024-01-03 09:02:06 -08:00
parent f05f2fbc45
commit 67f19e91b6
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
5 changed files with 7 additions and 12 deletions

View File

@ -17,7 +17,7 @@ file = "planet/luna.png"
file = "projectile/blaster.png"
[texture."ship::gypsum"]
file = "ship/gypsum.png"
file = "ship/gypsum2.png"
[texture."ui::radar"]
file = "ui/radar.png"

View File

@ -26,7 +26,6 @@ pub(crate) mod syntax {
pub file: PathBuf,
}
// TODO: loop mode
#[derive(Debug, Deserialize)]
pub struct FramesTexture {
pub frames: Vec<PathBuf>,

View File

@ -208,13 +208,9 @@ pub struct ParticleInstance {
/// Rotation matrix for this sprite, in world coordinates
pub rotation: [[f32; 2]; 2],
// TODO: docs: particle frames must all have the same size
// TODO: is transparency trimmed? That's not ideal for animated particles!
/// The height of this particle, in world units
pub size: f32,
// TODO: animated sprites
// TODO: texture aspect ratio
/// The time, in seconds, at which this particle was created.
/// Time is kept by a variable in the global uniform.
pub created: f32,

View File

@ -11,13 +11,13 @@ use galactica_render::ObjectSprite;
/// A single projectile in the world
#[derive(Debug)]
pub struct ProjectileWorldObject {
/// TODO
/// This projectile's game data
pub projectile: object::Projectile,
/// TODO
/// This projectile's rigidbody
pub rigid_body: RigidBodyHandle,
/// TODO
/// This projectile's collider
pub collider: ColliderHandle,
}

View File

@ -28,13 +28,13 @@ impl ShipControls {
/// A ship instance in the physics system
pub struct ShipWorldObject {
/// TODO
/// This ship's physics handle
pub physics_handle: ShipPhysicsHandle,
/// TODO
/// This ship's game data
pub ship: object::Ship,
/// TODO
/// This ship's controls
pub controls: ShipControls,
}