Conanyedo / cub3d

The cub3d project at 42 , a wolfenstein-like game using raycasting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cub3D

First-person 3D representation of a maze using raycasting, similar to Wolfenstein 3D (1992).

Mandatory part

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 run make.
  • run the executable ./cub3D with the map as an argument.
./cub3D map.cub

screen

Controls

  • 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.

How to run the bonus part

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

screen

About

The cub3d project at 42 , a wolfenstein-like game using raycasting


Languages

Language:C 98.2%Language:Makefile 1.8%