Skip to content

This is project from graphical branch in UNIT Factory. Simple ray casting engine similliar to old game wolfenstein.

Notifications You must be signed in to change notification settings

iradchenua/wolf3d

Repository files navigation

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

About

This is project from graphical branch in UNIT Factory. Simple ray casting engine similliar to old game wolfenstein.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages