Use git clone
and make
in main folder
./projet_pfa [map_path] [options]
ESC
: quitz
: move forwardq
: move leftd
: move rights
: move backa
: rotate lefte
: rotate rightc
: change between 2D and 3D viewl
: change language between US and FRm
: toggle minimapp
ando
: change player view
w
: move forwarda
: move leftq
: rotate left
the other keys are unchanged
-
-mode
<2D | 3D> 2D or 3D display -
-lang
<FR | US> FR or US lang -
-fov
<NUMBER> field of vision (angle de vision) -
-hov
<NUMBER> height of vision (hauteur de vision) -
-rs
<NUMBER> rotation speed -
-scale
<NUMBER> scale of the 2D map -
-map
set a minimap in the lower left corner -
-step
<NUMBER> set the distance between two steps -
-time
<Day | Night> Day or Night display -
-persp
<FPS | RPS> FPS or RPS perspective
Collisions are managed first by calculating the player's new position and then by searching the existence of an intersection between the walls (segments) and the player's movement (speed vector).
The sun and the moon change position when we rotate the player
- The player can pass through some corners.
- When the player and some walls are very close, with a certain angle, to each other, the wall disappears. But the player cannot cross.
- The sun and the moon move correctly only when the rotation speed of the player is 10
Big thanks to Mr.Roux for debugging and explanations