1 2 3 4 5 6 7 8 9 10 11 12
use bracket_geometry::prelude::Rect; #[derive(Copy, Clone, Debug)] pub struct Sprite { pub sheet_location: Rect, } impl Sprite { pub fn new(sheet_location: Rect) -> Self { Sprite { sheet_location } } }
1 2 3 4 5 6 7 8 9 10 11 12
use bracket_geometry::prelude::Rect; #[derive(Copy, Clone, Debug)] pub struct Sprite { pub sheet_location: Rect, } impl Sprite { pub fn new(sheet_location: Rect) -> Self { Sprite { sheet_location } } }