Skip to content
/ cub3d Public

The goal is to create a 3D graphic representation of a labyrinth in first person view using the principles of ray-casting.

Notifications You must be signed in to change notification settings

Rasaboun/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕹️Cub3D 42cursus project🕹️

About

The goal is to create a 3D graphic representation of a labyrinth in first person view using the principles of ray-casting.

🔨 Usage

Make && ./Cub3D [your-map.cub]
cub3d.mp4

Project Structure

.
├── 📁include/
│   └── *.h
├── 📁libft/
│   └── libft.a
├── 📁map/ 
│   └── *.cub
├── 📁minilibx-linux/
│   └── libmlx.a
├── 📁src/ 
│   └── *.c
├── 📁texture/
│   └── *.xpm
└── MakeFile
  • 📂 libft: My implementation of some of the Standard C Library functions compiled into a library
  • 📂 map: 2D representation of the map with sprites and the player
  • 📂 minilibx: MinilibX, is a simple X-Window (X11R6) programming API in C
  • 📂 src: Source file
  • 📂 texture: Texture for Wall and Sprite/

⚙️ Settings

Command

KEY Action
ESC exit game
Q move left
D move right
Z move forward
S move backward
turn right
turn left

Map

Character Description
1 wall
0 floor
2 sprite #1
N/E/W/S player initial position + orientation
NO north texture file
SO south texture file
WE west texture file
EA east texture file
F floor rgb color
C celling rgb color

About

The goal is to create a 3D graphic representation of a labyrinth in first person view using the principles of ray-casting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages