Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3d

C 42 Grade: 105%

3D raycasting engine in C built with MinilibX, inspired by Wolfenstein 3D.

cub3d

cub3d

Instructions

Prerequisites

  • OS: Linux or MacOS
  • make
  • cc
  • MinilibX (use make mlx to clone it)
  • X11 or xquartz on MacOS (to use minilibx-linux)

Quick Start

# 1. Clone MinilibX from 42 repo
make mlx

# 2. Compile
make

# 3. Start game
./cub3d <map.cub> # e.g.: maps/subject.cub

Controls

Key Action
W Move forward
A Move left
S Move backward
D Move right
←/→ Rotate
ESC Exit game

Commands

make        # compile
make debug  # compile (debug mode)
make mlx    # clone mlx
make clean  # remove objects
make fclean # remove objects and executable
make re     # clean and recompile

Resources

About

3D raycasting engine in C built with MinilibX, inspired by Wolfenstein.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages