Skip to main content

Module player

Module player 

Source
Expand description

Player movement and state.

Structs§

Input
One frame of player input.
Player

Constants§

EYE_CROUCH
EYE_STAND
GRAVITY
z units / s^2. With JUMP_VEL a jump lasts 0.8 s and peaks 16000 units up, as measured in the original (DOSBox video, E1M1 coffin).
HEIGHT_CROUCH
HEIGHT_STAND
JUMP_VEL
RADIUS
RUN_SPEED
STEP
SWIM_SPEED
WALK_SPEED
Top speeds and responsiveness measured from the original (DOSBox video, E1M1 start).

Functions§

legacy_fall_speed
Fall speed scaled to what it would be under the old 0x10000 gravity, so fall damage keeps depending on the same fall heights.
no_ceiling 🔒
Eye height above the feet. Fitted against screenshots of the original’s opening views on six maps (with the renderer’s vertical scale 1.0).