Skip to content

ismaelmehdid/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A 3d game using raycasting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published