First-person 3D representation of a maze using raycasting, similar to Wolfenstein 3D (1992).
The basic program that was required to pass. It only includes wall textures and a sprite ; no floor/ceiling textures, no weapons, no enemies, no game elements at all.
- git clone the repository.
cd
into the directory and runmake
.- run the executable
./cub3D
with the map as an argument.
./cub3D map.cub
-
You can move around the maze with W A S D.
-
You can also rotate the view with the directional arrows ← and →.
-
You can shoot with SPACE and reload with R.
-
To exit the game, press ESC or click the red cross.
Using make bonus will build the executable ./cub3D.
make bonus
run the executable ./cub3D
with the bonus map as an argument.
./Cub3D Bonus/map_bonus.cub