blob: 4bb11e1f7f54e52db5627c58dcc3bbd1e9a083ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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 CELLS_TO_METRES: f32 = 20.0;
// 10x10 square of steel = 0.5m^2 = 150kg with density 150
pub const MASS_SCALING: f32 = 1.0 / 200.0;
pub const SETTLED_THRESOHLD: u8 = 7;
// any entity with fewer cells than this will be turned to particles
pub const MIN_ENTITY_CELLS: usize = 9;
pub const TILESET_SCALING: i32 = 8;
pub const GRAVITY: f32 = 196.2;
|