Cub3D is a 3D graphics project that explores the raycasting technique to create a simple game engine with a Wolfenstein 3D-like visual style.
To install and use Cub3D, follow these steps:
-
Clone the Cub3D repository from GitHub:
git clone https://github.com/username/cub3D.git
-
Change into the project directory:
cd cub3D
-
Compile the Cub3D program using the provided Makefile:
make
-
The
cub3D
executable will be generated. You can now start using Cub3D.
Note: Cub3D requires a Unix-like operating system and a C compiler (e.g., GCC) to be installed on your system.
To use Cub3D, follow the syntax:
./cub3D path/to/map.cub
The map is configured in a .cub
file. Example configuration:
R 1920 1080
NO ./textures/wall_north.xpm
SO ./textures/wall_south.xpm
WE ./textures/wall_west.xpm
EA ./textures/wall_east.xpm
S ./textures/sprite.xpm
F 255,255,255
C 0,0,0
111111
100001
1001N1
100001
111111
Cub3D has the following key features and considerations:
- The project implements raycasting for rendering a 3D environment.
- Texture mapping is used to enhance the visual representation of walls and sprites.
- The map is configured through a
.cub
file, specifying resolution, textures, colors, and the map layout. - Basic first-person controls allow users to navigate the 3D environment.
Cub3D is the result of the collective effort of several individuals: