Skip to content

yassirtouab/42-cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-cub3d

📖 cub3d

my first raycasting game

GitHub code size in bytes Code language count GitHub top language GitHub top language GitHub last commit

QuickStart

Makefile provided, you can compile using the command

make all

The executable (cub3d) takes one arguement which is the map, where you can choose some of our demo maps

./cub3d maps/*

Description

This game is done using the raycasting way where I sent vectors from the starting position of the player that checks everytime it hits a grid till it reaches a wall '1' and then calculate the exact distance by taking the grid size as a 1 unit. Depending on the distance from the player to the wall, the vertical size of the wall is calculated.

You can start the game as said before in QuickStart. For the moves, you can using the keys (WASD) and use the arrows to look around or you can use the mouse inside the window.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published