the oryx-ening - zoom factor, and renderables refactor

currently extremely unfinished - half the sprites are gnomes, and tiles have no colours
This commit is contained in:
Llywelwyn 2023-10-06 09:22:11 +01:00
parent 8bb6a54a39
commit 44b0674b5a
30 changed files with 2150 additions and 650 deletions

View file

@ -28,25 +28,19 @@ pub struct Equippable {
pub to_hit: Option<i32>,
}
#[derive(Deserialize, Debug)]
pub struct SpriteInfo {
pub id: String,
pub alt: Option<String>,
pub colour: Option<bool>,
pub x: Option<f32>,
pub y: Option<f32>,
pub alt_x: Option<f32>,
pub alt_y: Option<f32>,
}
#[derive(Deserialize, Debug)]
pub struct Renderable {
pub glyph: String,
pub sprite: Option<SpriteInfo>,
pub sprite: String,
pub alt: Option<String>,
pub fg: String,
pub bg: String,
pub fg_alt: Option<String>,
pub order: i32,
pub alt_order: Option<i32>,
pub order_alt: Option<i32>,
pub x: Option<f32>,
pub x_alt: Option<f32>,
pub y: Option<f32>,
pub y_alt: Option<f32>,
}
#[derive(Deserialize, Debug)]