Skip to content
/ Cub3d Public

This project is inspired by the world-famous eponymous 90's game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you'll have to find your way.

Notifications You must be signed in to change notification settings

AtibQur/Cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Score

Description Cub3D 🕹️

This project is inspired by the world-famous eponymous 90's game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you'll have to find your way.



Rules

  • The W, A, S, and D keys must be used to move.
  • The ← and → arrow keys should rotate your screen.
  • The player should not be able to move into walls.
  • Your program has to display the image in a window
  • The management of your window must remain smooth (changing to another window, minimizing, and so forth).
  • Pressing ESC must close the window and quit the program in a clean way.
  • Clicking on the cross on the window’s frame must close the window and quit the program in a clean way.
  • The map must be closed with walls and there should be no empty spaces.
  • The map file should end with a .cub extension.

  • Installation ⚙️

    *To build the programm there is only a few steps: First of all, you can download the repository through the following steps in any shell of your preference:*
    git clone [email protected]:AtibQur/cub3d.git
    cd cub3d
    make
    
    These commands will compile everything and a executable "cub3D" should be created.

    Usage 🛠️

    To compile the program, run the following command:

    cd cub3d && make
    ./cub3d input/(map_name).cub
    
    After creating the executable, the function is ready for use. This function only takes a map with an .cub extension.

    Third-party helpers/testers

  • https://lodev.org/cgtutor/raycasting.html
  • https://github.com/codam-coding-college/MLX42
  • https://permadi.com/1996/05/ray-casting-tutorial-1/
  • About

    This project is inspired by the world-famous eponymous 90's game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you'll have to find your way.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published