summaryrefslogtreecommitdiff
path: root/src/config.rs
blob: 25986ae2595a1b9e2eaff13e005c5e32470369a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub const WINDOW_TITLE: &str = "pxs";

pub const CHUNK_SIZE: i32 = 128;
pub const CELLS_IN_CHUNK: usize = (CHUNK_SIZE * CHUNK_SIZE) as usize;

pub const CAMERA_MOVEMENT_SPEED: f32 = 2400.0;

pub const SIM_FPS: u32 = 120;
// pub const SIM_DELTA_TIME: f32 = 1.0 / SIM_FPS as f32;
pub const PHYSICS_FPS: u32 = 60;
pub const PHYSICS_DELTA_TIME: f32 = 1.0 / PHYSICS_FPS as f32;

pub const PIXELS_TO_METRES: f32 = 20.0;

pub const SETTLED_THRESOHLD: u8 = 7;