Includes detection of randomly placed squares and circles with random radiuses.
Simple raycast engine using 2-3 lines of math for the beginning of the main FOR loop from "javidx9"s Raycast Coding Tutorial from about a year ago.
The rest of the code is mine including the square and circle detection.
This is an open source program, feel free to expand upon this program to make your own.
Enjoy Unfinity's Raycast Engine!InstructionsCircle Pad:
Y Axis - move forward/backward based on player angle
X Axis - rotate angle left/right
X Axis - Change quality (blockiness of render)
Y Axis - Change accuracy (smoothness of height difference + better detection of corners)