2018-11-19 15:30:57 +01:00

26 lines
590 B
Rust

use sfml::system::Vector2;
/// The gravity force.
pub const G: Vector2<f32> = Vector2 {
x: 0.0,
y: 25.0 * 32.0,
};
/// The friction with the ground.
pub const GROUND_FRICTION: Vector2<f32> = Vector2 { x: 0.5, y: 1.0 };
/// The speed of a jump.
pub const JUMP_SPEED: Vector2<f32> = Vector2 {
x: 0.0,
y: -12.5 * 32.0,
};
/// The maximum vertical speed.
pub const MAXIMUM_VERTICAL_SPEED: f32 = 10.0 * 32.0;
/// 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;