Skip to content

JulesRF/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

100 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3d

cub3d is a project from 42 school that uses raycasting to display a 3d rendered map.

The player should be abble to walk through the map and to turn his head to navigate freely.

cub3d.mp4

The subject also asks you to render differents maps located in ".cub" extension files. Those files can be created or modified by the user so the program needs to carefuly parse the input.

The user can draw his own map using "1" characters as wall and "0" characters as floor and "E" "N" "S" "O" characters as the players spawn (and his facing direction), the rest will be empty. He can also choose the color of the floor, ceiling, and can add textures to render on the walls image

Here are some of the parsing checks that protects the program from crashing: image image image

The map cand be rendered with any texture as long as it is a .xpm file, here is a map with photos of me and my friend as walls image

About

Raycasting rendering 3D game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •