use cgmath::{Deg, Point2}; use crate::{physics::Pfloat, Sprite, Spriteable}; pub struct Doodad { pub sprite: String, pub pos: Point2, } impl Spriteable for Doodad { fn sprite(&self) -> Sprite { return Sprite { pos: self.pos, name: self.sprite.clone(), angle: Deg { 0: 0.0 }, scale: 1.0, }; } }