added asset management spec

This commit is contained in:
Nilton Constantino
2026-01-22 08:28:32 +00:00
parent 549d210d7e
commit dac80ff3cb
10 changed files with 15 additions and 959 deletions
+3 -3
View File
@@ -27,8 +27,8 @@ pub struct TileBank {
/// Pixel data stored as 4-bit indices (packed into 8-bit values).
/// Index 0 is always reserved for transparency.
pub pixel_indices: Vec<u8>,
/// Table of 256 palettes, each containing 16 RGB565 colors.
pub palettes: [[Color; 16]; 256],
/// Table of 64 palettes, each containing 16 RGB565 colors, total of 1024 colors for a bank.
pub palettes: [[Color; 16]; 64],
}
impl TileBank {
@@ -39,7 +39,7 @@ impl TileBank {
width,
height,
pixel_indices: vec![0; width * height], // Index 0 = Transparent
palettes: [[Color::BLACK; 16]; 256],
palettes: [[Color::BLACK; 16]; 64],
}
}