About · Project Structure · Setting · Usage
The goal is to create a 3D graphic representation of a labyrinth in first person view using the principles of ray-casting.
Make && ./Cub3D [your-map.cub]
cub3d.mp4
.
├── 📁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/
KEY | Action |
---|---|
ESC |
exit game |
Q |
move left |
D |
move right |
Z |
move forward |
S |
move backward |
→ |
turn right |
← |
turn left |
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 |