An open API service indexing awesome lists of open source software.

https://github.com/oc8/42-cub3d

42 | 3D game created from scratch written in C
https://github.com/oc8/42-cub3d

3d 42 c cub3d game

Last synced: 3 months ago
JSON representation

42 | 3D game created from scratch written in C

Awesome Lists containing this project

README

        

# Cub3D
Cub3D is a 3D game inspired by Wolfenstein 3D and Doom. You play as a character and must navigate a 3D world, avoiding enemies.

## How to play
To play Cub3D, first clone the Git repository on your computer. Then, open your terminal and navigate to the game's directory.

To compile and run the game with bonus features, use the following command:

```
make bonus
./cub3D ./map/...
```
Replace ./map/... with the path to the map you want to use.

## Controls
Here is a list of controls for playing Cub3D:

#### Basic
- Use the mouse to change your view
- Use the Shift key to sprint
- Use the Space key to jump
- Use the Ctrl key to snic
- Press M to start the game

#### Cheat
- Use keys 1 and 2 to fly

Good luck and have fun!