Skip to content

shoccho/ascii_raycaster_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a raycaster made in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages