Entrance of a level

This commit is contained in:
2018-10-06 21:28:26 +02:00
parent 5c54974159
commit 93d1678955
4 changed files with 27 additions and 2 deletions
+5 -2
View File
@@ -1,10 +1,13 @@
use sfml::system::Vector2;
/// The gravity force.
pub const G: Vector2<f32> = Vector2 { x: 0.0, y: 50.0 * 32.0 };
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: -600.0 };
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;