Skip to content

ettalha0x/cub3d101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D

This project is written in c using mini-libx Library, This old library has a little builtin-funcs.

Project Roadmap

Leaks

  • refining_spaces function has a heap-buffer-overflow.

Parsing

  • check if the user provided a map.
  • check map is a .cub file.
  • check if the map file exist.
  • read data from map file.
  • divide map file info on t_data.
  • check if textures are unique.
  • check that textures are .xpm files.
  • check that textures are accesable.
  • check the color value for both floor and ceiling.
  • extract map dimentions.
  • check map characters.
  • check map is walled of.
  • extract player location.
  • set player starting angle.
  • provide context in error msgs.
  • write description for each functions in .h file.
  • check norminette.
  • check memory leaks.

Graphics

  • game init window.
  • draw minimap.
  • draw minimap grid.
  • draw minimap player (filled circle).
  • move player all directions.
  • player must not walk into the wall.
  • draw a direction line (to know where the player is looking).
  • draw a vue angle by casting rays line by line (60 degree).
  • 3D projection.
  • Fixing wall distortion.
  • replacing ceiling and floor with their dedicated color.
  • projecting textures on 3d walls.
  • write description for each functions in .h file.
  • check norminette.
  • check valgrind.

Error Testing

  • no map provided.
  • empty map file.
  • missing texture.
  • map not .cub file.
  • missing texture path.
  • textures not .png file.
  • map file doesnt exist.
  • missing RGB values.
  • incorrect RGB values.
  • same texture for more than one side.
  • missing texture file.
  • missing floor or ceiling.
  • player doesnt exist.
  • only one player on map.
  • invalid map character.
  • texture path are repeated but one uses absolute path.
  • map not walled off.
  • spaces in the middle of the map.
  • missing map.
  • map file with less than 6 lines in total.
  • check valgrind with all errors.

Authors

About

cub3d101

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •