use crate::BACKGROUND_MAX_SIZE;
use glam::IVec2;
pub struct Background {
pub tiles: Vec<Vec<u16>>,
pub scroll: IVec2,
pub half_tile: bool,
}
impl Default for Background {
fn default() -> Self {
let row = vec![0u16; BACKGROUND_MAX_SIZE];
let tiles = vec![row; BACKGROUND_MAX_SIZE];
Self {
tiles,
scroll: IVec2::ZERO,
half_tile: false,
}
}
}