overhaul: data-driven architecture

This commit is contained in:
Llywelwyn 2023-07-25 03:50:50 +01:00
parent 062d36f640
commit f53b767376
19 changed files with 680 additions and 727 deletions

View file

@ -5,6 +5,7 @@ extern crate serde;
pub mod camera;
mod components;
pub mod raws;
pub use components::*;
mod map;
pub use map::*;
@ -543,6 +544,8 @@ fn main() -> rltk::BError {
gs.ecs.register::<SerializationHelper>();
gs.ecs.insert(SimpleMarkerAllocator::<SerializeMe>::new());
raws::load_raws();
let player_entity = spawner::player(&mut gs.ecs, 0, 0);
gs.ecs.insert(Map::new(1, 64, 64));
gs.ecs.insert(Point::new(0, 0));