https://github.com/rose-mtz/ray-casting
2D ray casting for 2D lighting.
https://github.com/rose-mtz/ray-casting
cpp game sfml
Last synced: 2 months ago
JSON representation
2D ray casting for 2D lighting.
- Host: GitHub
- URL: https://github.com/rose-mtz/ray-casting
- Owner: rose-mtz
- Created: 2024-11-13T02:05:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-13T02:14:12.000Z (over 1 year ago)
- Last Synced: 2025-10-15T20:58:45.379Z (9 months ago)
- Topics: cpp, game, sfml
- Language: C++
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Ray Casting
A project that I made to play around with ray casting (lighting in graphics programming).
## Demo
https://github.com/user-attachments/assets/29eb081a-66f6-457f-8ecf-7d7d20636c4e
## Tech
- C++ (programming language)
- SFML (graphics library)
- Makefile (build tool)
- VS Code (IDE)
- GCC (compiler)
- GDB (debugger)
## Quick Guide Of Project Structure
### RayCasting.h & RayCasting.cpp
These are the files that contain the code that does the actual ray casting calculations.
These are the most important of this project, the rest are just files used for testing and visualizing
the algorithms in these files.
### testAuto & testVisual
Both are used for testing. One runs automatic tests, the other opens a window where program
can be visual tested.
## Commands
The perquisites:
- SFML
- Makefile
- GCC
To build and run the program:
```
$ make testsVisual
```