Skip to content
/ cub3d Public

This project focuses on creating a “realistic” 3D graphical representation of the interior of a maze from a first-person perspective, based on the principles of Ray-Casting.

Notifications You must be signed in to change notification settings

daisvke/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3D

Description

This project focuses on creating a “realistic” 3D graphical representation of the interior of a maze from a first-person perspective, based on the principles of Ray-Casting.


Commands

Running the Program

Compile and run the program using the following commands:

make
./cub3D [map]
# Example:
./cub3D maps/ok_test_map_labyrinth.cub

Controls

Action QWERTY Key AZERTY Key
Move Up W Z
Move Down S S
Move Left A Q
Move Right D D
Quit ESC ESC

Map Format

The program requires a map description file (with the .cub extension) as its first argument.

Map Elements

The map must include only the following 7 characters:

Character Description
0 Empty space
1 Wall
X Exit point of the map
N, S, W, E Player's starting position and direction

Map Rules

  1. The map must be fully enclosed by walls (i.e., surrounded by 1).
  2. Below is an example of a valid map:
    1111111111111
    1001000000001
    1000011111001
    100011E000001
    1111111111111
    

Screenshots

About

This project focuses on creating a “realistic” 3D graphical representation of the interior of a maze from a first-person perspective, based on the principles of Ray-Casting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published