Log In  

Cart #raycaster2_v32-0 | 2024-01-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Controls:

ESDF to move and strafe
Horizontal arrows to look around

How it was made

Take the player position plus a multiplication of their angle and see if that spot had a wall,
if it does take that distance and scale it on to the screen.
Change the angle a little each time and put it at a different x coordinate.
That's the basics, i'm not great at explaining it and its hard to understand without graphics.
Take apart the code, I insist! I think I removed all the weird comments that I wrote when I got
bored, but no promises. :3

Video modes

Big is wide but doesn't draw very far.
Med is what you think it is.
Small is well small, but draw farther.
De-bug stretches the engine as far as it goes. ( from what I've seen, try making it go further! )

P#140082 2024-01-13 19:54 ( Edited 2024-03-03 17:03)


[Please log in to post a comment]