2018-10-03 20:48:00 +02:00
|
|
|
use sfml::system::Vector2;
|
|
|
|
|
|
|
|
/// The gravity force.
|
2018-11-19 15:30:57 +01:00
|
|
|
pub const G: Vector2<f32> = Vector2 {
|
|
|
|
x: 0.0,
|
|
|
|
y: 25.0 * 32.0,
|
|
|
|
};
|
2018-10-03 20:48:00 +02:00
|
|
|
|
|
|
|
/// The friction with the ground.
|
|
|
|
pub const GROUND_FRICTION: Vector2<f32> = Vector2 { x: 0.5, y: 1.0 };
|
|
|
|
|
|
|
|
/// The speed of a jump.
|
2018-11-19 15:30:57 +01:00
|
|
|
pub const JUMP_SPEED: Vector2<f32> = Vector2 {
|
|
|
|
x: 0.0,
|
|
|
|
y: -12.5 * 32.0,
|
|
|
|
};
|
2018-10-06 21:28:26 +02:00
|
|
|
|
|
|
|
/// The maximum vertical speed.
|
|
|
|
pub const MAXIMUM_VERTICAL_SPEED: f32 = 10.0 * 32.0;
|
2018-10-10 14:24:43 +02:00
|
|
|
|
|
|
|
/// The maximul walking speed.
|
|
|
|
pub const MAXIMUM_WALKING_SPEED: f32 = 2.5 * 32.0;
|
|
|
|
|
|
|
|
/// The maximum running speed.
|
|
|
|
pub const MAXIMUM_RUNNING_SPEED: f32 = 5.0 * 32.0;
|