Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.01 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.01 KB

🎮 CUB3D 🕹️

💡 About the project

This project is a reproduction of wolfenstein 3D in C using raycasting.

ezgif-2-0e781d5019

Instructions

Compiling the game

To compile, go to the project directory and run :

$ git submodule update --init --recursive
$ make

Running the game

./cub3d <path/to/map.cub>

The program takes a map file as an argument. Maps are available in the game_data/maps directory. For example:

  • ./cub3d game_data/maps/fun_map.cub should run.

Controls

Controls for movement and rotation are:

  • W: move forward
  • S: move backward
  • A: strafe left
  • D: strafe right
  • E: open/close a door
  • left arrow: rotate left
  • right arrow: rotate right
  • mouse: rotate by moving the mouse
  • left-click: shoot

This project was developed collaboratively with Andrii Syvash.