This project is a reproduction of
wolfenstein 3D
inC
usingraycasting
.
Compiling the game
To compile, go to the project directory and run :
$ git submodule update --init --recursive
$ make
Running the game
./cub3d <path/to/map.cub>
The program takes a map file as an argument. Maps are available in the game_data/maps
directory.
For example:
./cub3d game_data/maps/fun_map.cub
should run.
Controls for movement and rotation are:
W
: move forwardS
: move backwardA
: strafe leftD
: strafe rightE
: open/close a doorleft arrow
: rotate leftright arrow
: rotate rightmouse
: rotate by moving the mouseleft-click
: shoot
This project was developed collaboratively with Andrii Syvash.