11 lines
314 B
Rust
11 lines
314 B
Rust
|
use sfml::system::Vector2;
|
||
|
|
||
|
/// The gravity force.
|
||
|
pub const G: Vector2<f32> = Vector2 { x: 0.0, y: 50.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: -600.0 };
|