external config

This commit is contained in:
2026-03-18 23:19:58 +00:00
parent a5154f73dd
commit 15c0d1c7a2
9 changed files with 87 additions and 10 deletions
+4
View File
@@ -7,6 +7,7 @@ use crate::entities::{
};
mod camera;
mod config;
mod constants;
mod cursor;
mod entities;
@@ -14,7 +15,10 @@ mod game;
mod world;
fn main() {
let game_config = config::GameConfig::load();
App::new()
.insert_resource(game_config)
.insert_resource(game::ZIndex(0.0))
.insert_resource(world::tiles::CurrentWorldSpriteState {
state: world::tiles::TerrainSpriteState::Inactive,