Need help running 2D ray tracing project code

OPEN

If anyone could help me through the process of getting the raycast source file to run I would appreciate it. I tried linking to the file in terminal and using .\a or whatever and I cant get it to work. Its been a few hours of searching to try and get it running so I need some help at this point.

​

Here is the source: https://www.youtube.com/watch?v=6Zn_nVkFaF8&t=4s

Posted Mar 9, 2022, 7:08 PM UTC

21
the_poope•

Compile with e.g.:

g++ -O3 -o Raycast Raycast.cpp

Then run with:

$> ./Raycast

Or on Windows with MSVC developer prompt:

cl.exe /O2 /Fe:Raycast Raycast.cpp
1