Wolf3d is a pseudo-3d game. The project was developed as a part of 42 school program. It parses maps from files, visualizes them using ray-casting technique.
Map file format
It's a very simple format. Open a file in your favorite text editor, make sure you have a grid of integers (each one being it's block ID), and it should work right out of the box. Spawn position is the first empty space available from the down right.
1 1 1 1 1
1 0 2 0 1
1 0 0 0 1
1 1 1 1 1
Numbers 1-6
is a kind of textures
Bonuses
- Music in game
- Button
S
on keyboard switching the textures set. - Button
W
on keyboard - on/off weapon - Texturing floor and ceiling
- Button
L
on keyboard run system command leaks and show memory leaks in program.
git clone https://github.com/kmieshko/wolf3d.git
cd wolf3d
make
./wolf3d [map]
Notice: Project using SDL2 graphic library and it's needed to run this project