Skip to content

🌈RainbowCube🌈 is a project where we make a 3D environment from scratch with the help of raycasting!

License

Notifications You must be signed in to change notification settings

lavendelchen/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3d

cub3d_demo

🌈RainbowCube🌈 is a project where we make our first 3D game with raycasting!

If you are looking for inspiration/help for your own cub3d, specifically the raycaster/texture part, feel free to take a look at the cub3d.h header!
We used the 42Docs tutorial for the raycasting. However, we changed the variable names to make it more understandable for us, and for better structure. In the cub3d.h header, it is noted which variables are which to connect our version to the tutorial.
We have some minor changes, which are usually noted on top of the functions they're in. Completely selfmade are:

  • left-right movement (which is not implemented in the tutorial)
  • texture-pixel-putting (see function tex_rgba())
  • the movement is also restructured into multiple functions, but still works the same as in the tutorial

Happy coding🌈

About

🌈RainbowCube🌈 is a project where we make a 3D environment from scratch with the help of raycasting!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published