https://github.com/pedrozappa/42_cub3d
https://github.com/pedrozappa/42_cub3d
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pedrozappa/42_cub3d
- Owner: PedroZappa
- License: unlicense
- Created: 2024-09-24T14:59:39.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-12-09T15:25:39.000Z (6 months ago)
- Last Synced: 2025-02-07T08:48:44.560Z (4 months ago)
- Language: C
- Size: 20.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 42_Cub3d
>
![]()
![]()
![]()
![]()
![]()
___
Table o'Contents
* [About ๐](#about-)
* [Usage ๐](#usage-)
* [Tests & Debug ๐งช](#tests--debug-)
* [References ๐](#references-)
* [License ๐](#license-)# About ๐
Cub3d is a project inspired by the world-famous `Wolfenstein 3D (Wolf3D)`, the first FPS ever. An exploration of ray-casting.
___# Usage ๐
Clone the repository and cd into it:
```sh
git clone https://github.com/PedroZappa/42_cub3d.git 42_cub3d
```Build the program:
```sh
cd 42_cub3d
make
```Run the program:
```sh
./cub3d ./maps/subject.cub
```___
# Tests & Debug ๐งช
Run the following command and look at the `Test Rules ๐งช` & `Debug Rules ๏` to get a comprehensive list of all available test/debug commands:
```sh
make help
```> [!Note]
> If you use `tmux` you are in for treat ๐
___
# References ๐- [Lode's Computer Graphics Tutorial](https://lodev.org/cgtutor/raycasting.html)
- [Ray Tracing in One Weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html)
- [2D Vector Rotations](https://matthew-brett.github.io/teaching/rotation_4d.html)
- [Vector Rotations: Active & Passiva](https://phys.libretexts.org/Courses/University_of_California_Davis/UCD%3A_Physics_9HB__Special_Relativity_and_Thermal_Statistical_Physics/3%3A_Spacetime/3.1%3A_Vector_Rotations)
- [Scalar Product](https://www.mathcentre.ac.uk/resources/uploaded/mc-ty-scalarprod-2009-1.pdf)# License ๐
This work is published under the terms of 42 Unlicense.