use glam::IVec2;
use std::fmt::{Display, Formatter};
#[derive(Default, Copy, Clone)]
pub struct Sprite {
pub pos: IVec2,
pub tile: u16,
pub priority: u8,
}
impl Display for Sprite {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(
f,
"[pos: {}, tile: {}, priority: {}]",
self.pos, self.tile, self.priority
)
}
}