Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.1 KB

README.md

File metadata and controls

40 lines (34 loc) · 1.1 KB

wolf3d

This is 3D graphically “realistic” representation that we could have from inside a maze in a subjective view. This representation useses Ray-Casting principles. SDL2 is used as graphical library here.

usage

On Mac Os

git clone https://github.com/iradchenua/wolf3d.git somewhere/wolf3d
cd somewhere/wolf3d
make
./wolf3d tests/some_map
enjoy ^^^

map definition

The map file is a simple text file with following lines:

h w 
B00 ..... B0w-1
. . .
. Bij .
. . .
Bh-10 ..... Bh-1w-1

where h - height of the map, 0 < h <= 40, w - widht of the map, 0 < w <= 40
Bij is in {0,..,11,x} 0 <= i < h, 0 <= j < w
x is player
number is box type 0 - no box, 11 - special box with differrent 4 sides
to see other wall type look textures/(type - 1).bmp
To move in the map use arrows, left shift to acceleration

Screnshots

map1 test file

map1

maze file

maze