This project is a graphic design project, inspired by the famous game Wolfenstein 3D. We need to create a "realistic" 3D graphical representation of the inside of a maze from a first person perspective, using Ray-Casting principles.
This project also enables us to improve skills in: windows, colors, events, fill shapes, etc.
This is a group project completed by prranges & mbalman
- Allowed functions:
open
,close
,read
,write
,malloc
,free
,perror
,strerror
,exit
, all functions of themath
library and theMinilibX
library - All heap allocated memory space must be properly freed when necessary
- Management of window must remain smooth
- Allow for the display of different wall textures
- Allow for setting the floor and ceilling colors to two different colors
- Program must take a scene description file as a first argument
Run the following commands. Two map files (
xx.cub
) are provided in themaps
directory. Replacemap_or_map_bonus.cub
$ git clone https://github.com/prranges/cub3d
$ make - for mandatory part
$ make bonus - for bonus part
$ ./cub3d maps/map_or_map_bonus.cub
- Press
W / A / S / D
key to move - Press
Space
key to open or close the door. Also you can use a mouse to rotate.