Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 897 Bytes

README.md

File metadata and controls

23 lines (12 loc) · 897 Bytes

An attempt to make a raycaster in rust.

It ouputs to the terminal using ascii charecters.

It does not depend on any external libraries. Although using tui-rs or ncurses could've been a lot smarter choice but I wanted it be made using only std.

output :

DEMO

It could've been a lot better if I knew how these raycasters work or understand the maths properly.

There are a lot of room for improvement and a lot of bugs in the code.

Do not read the code if you don't want to damage your brain by reading ugly and bad code.

If you want to learn here are some resources

2D Ray casting : coding train

Rendering Ray casting : coding train

Making your own ray caster in c