Skip to content

azarSarikhani/cub3d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3D - My first RayCaster with miniLibX

Description

cub3D creates a “realistic” 3D graphical representation of the inside of a maze from a first-person perspective using the ray-Casting algorithm and 42 school's own graphic library miniLibX.

Language Used

Language Used

Contributors

lanximaomao and azarSarikhani

Install and Run

1. Compilation:

To compile the program, run the following command:

make

2. Running the Program:

The program takes a map in format of *.cub as argument: map.cub

An example of map loos like this:

F 76,76,76
C 99,99,99

NO textures/simonkraft/cobblestone.xpm
SO textures/simonkraft/cobblestone_01.xpm
WE textures/simonkraft/mossy_cobblestone1.xpm
EA textures/simonkraft/cobblestone_02.xpm

1111111111111111111
10W1001001001000001
1011000001000001001
1001001001111101111
1001111000001001001
1000000000000001001
1001111111111001001
1111000000000001011
1000000001000000001
1111111111111111111

Use the following command format to run the program:

./cub3d map.cub

Images

Visulization Visulization Visulization

External resources

About

wolfenstein style game in c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 83.5%
  • Objective-C 14.7%
  • Makefile 1.8%