implements Glyph and update Tile to use active (dsc16: done)

This commit is contained in:
2026-04-09 07:59:55 +01:00
parent c4aca95635
commit c83b0402ff
7 changed files with 32 additions and 14 deletions
+5
View File
@@ -0,0 +1,5 @@
#[derive(Clone, Copy, Debug, Default)]
pub struct Glyph {
pub glyph_id: u16,
pub palette_id: u8,
}
+1
View File
@@ -26,6 +26,7 @@ pub mod tile_layer;
pub mod touch_bridge;
pub mod vm_fault;
pub mod window;
pub mod glyph;
pub use asset_bridge::AssetBridge;
pub use audio_bridge::{AudioBridge, AudioOpStatus, LoopMode};
+2 -2
View File
@@ -1,8 +1,8 @@
use crate::tile::Tile;
use crate::glyph::Glyph;
#[derive(Clone, Copy, Debug, Default)]
pub struct Sprite {
pub tile: Tile,
pub glyph: Glyph,
pub x: i32,
pub y: i32,
pub bank_id: u8,
+4 -2
View File
@@ -1,7 +1,9 @@
use crate::glyph::Glyph;
#[derive(Clone, Copy, Debug, Default)]
pub struct Tile {
pub id: u16,
pub glyph: Glyph,
pub active: bool,
pub flip_x: bool,
pub flip_y: bool,
pub palette_id: u8,
}