This commit is contained in:
griffi-gh 2023-01-21 02:39:55 +01:00
parent 3d7083dc42
commit e3ef07df67
2 changed files with 15 additions and 0 deletions

View file

@ -19,6 +19,7 @@ pub(crate) mod player;
pub(crate) mod world; pub(crate) mod world;
pub(crate) mod prefabs; pub(crate) mod prefabs;
pub(crate) mod transform; pub(crate) mod transform;
pub(crate) mod settings;
use rendering::{Rederer, RenderTarget, BackgroundColor, clear_background}; use rendering::{Rederer, RenderTarget, BackgroundColor, clear_background};
use player::spawn_player; use player::spawn_player;

14
src/settings.rs Normal file
View file

@ -0,0 +1,14 @@
use shipyard::Unique;
#[derive(Unique)]
pub struct GameSettings {
//there's a 1 chunk border of loaded but invisible around this
pub render_distance: usize,
}
impl Default for GameSettings {
fn default() -> Self {
Self {
render_distance: 5
}
}
}