3D Raycaster v1.1
Left arrow -> Turn left
Right arrow -> Turn right
Up arrow -> Move forwards
Down arrow -> Move backwards
o -> Options
Turbo mode is NOT required, but you can use it if you want.
My first raycaster - made without any tutorials :D
Base code / proof of concept:
How it works:
The world is stored as a series of lines, rather than just a grid of 1s and 0s which is what normal raycasters use.
Advantages with my method:
- Allows walls at any angles
- More possibilities for worlds
- Less likely to glitch (if coded correctly)
- Lower chance of crashing (getting stuck on a never ending loop)
I probably wasn't the first person to come up with this method, so if you have already made something like this, I wasn't trying to copy you.