This project is inspired by the world-famous eponymous 90’s game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you’ll have to find your way.
115/100 ✅
sudo apt-get install libbsd-dev libx11-dev libxext-dev
- Run
make
to compile the base version andmake bonus
for a more complete experience. - Follow the instructions.
If you are running Linux the controls are based on a AZERTY keyboard and on MAC a QWERTY keyboard.
Z Q S D / ↑ ↓ ← → : Move and Strafe
Bonus version enable mouse camera control, you can change mouse sensitivity by setting ROT <int>
in the cub file and movement speed (basically the speed at which the game is running) by setting SP <int>
.
Default ROT is 5 and default SP is 4.
You should play around with these depending of your computer specs.
Key | Action |
---|---|
1 | increase distant shading |
2 | decrease distant shading |
3 | Buffer overlay |
4 | Toggle Interlacing |
5 | Print map |
Shift | Sprint |
Key | Action |
---|---|
Ctrl | (Hold) add floor and ceiling |
Numpad 1 | (Toggle) Wall <-> Interior empty space (0 <-> 1) |
Numpad 2 | (Toggle) Exterior Floor w/ skybox <-> Interior Floor w/ skybox |
Numpad 3 | (Toggle) Alternate wall texture |
Numpad 4 | Pushable wall |
Numpad 5 | (Toggle) Doors (Unlocked > Locked Key 1 > Locked Key 2) |
Numpad 6 | Spinning cylinder |
Numpad 7 | (Toggle) Angled wall (2 diagonals) |
Numpad 8 | (Toggle) Rounded wall (one for each corner) |