Skip to content

SashaCHU-st/Cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D

Cub3D is the second graphic project written in C, using the MLX42 library.

It is built using the Ray-Casting technique, rendering scenes from a first-person perspective.

Textures are displayed based on the player's viewpoint. Cub3d

Configuartion file

Configuration file need to include:

  1. path to the textures
  2. floor and ceiling colors
  3. map itself
NO textures/no_wall.png
SO textures/so_wall.png
WE textures/we_wall.png
EA textures/ea_wall.png

F 25, 255, 100
C 220,30,0 

111111111
100000001
100000001
100000001
100S00001
100000001
100000001
100000001
111111111

Controls

  • W,D or Arrow keys up, down: Move forward and back.
  • A, D: move to the left and right.
  • Arrow Keys or Mouse: Rotate the player's view.
  • ESC Quit the game.

Cub3D Program Usage

  1. Clone repository
  2. Move to directory
cd cub3D

3.Run make file

make
  1. Run th program : example
./cub3D maps/valid/good1.cub

About

Cub3D. Creating own Wolfenstein 3D game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published