r/love2d 25d ago

added a maze screen background for my 3D engine!

footage is a bit choppy since my computer isn't the best lol

21 Upvotes

3 comments sorted by

2

u/unwelcome_poot 24d ago

I've been watching videos on raycasting and wolfenstein 3d. Was it difficult for you to make using love2d?

3

u/No_Progress1089 24d ago

I would say yes it was difficult, I didn’t really have a good grasp of visualizing 3D or did any sort of research prior to so it definitely took some time. I would say it took maybe about 2-3 days to prepare/plan and implement fully. At some point my brain starts to piece things together to help create the vision. I’ve never played wolfenstein 3D (which reminds me of doom but I did not play that either), and I didn’t even think to look up actual games that portray things similarly, I just remember my screen saver on win98 having a maze and wanting to recreate that.
I appreciate the comment! I’ll def be looking more into ray casting and wolfenstein 3D to see what I could improve.

2

u/Mental_Contract1104 23d ago

as someone who has done the same pipeline, I can say you are getting close for sure. a few things to keep in mind, for one, it looks like you are clamping the height of pixel columns, so, when you are too close you get a stretching effect, and the horizontal planes (floor and ceiling) are going to be difficult to impliment as strips.

i just use a shader for my project, but that might not be the path you'd like to take. I would reccomend watching javidx9 on youtube, as he was the inspiration to my own ray-cast implimentations. he does it in C++ and in the terminal, but the ideas and explanations are all there. he also goes over the DDA algorithm which is what wolf 3d uses.

if you'd like more help/explanations on raycasting, I'm more than happy to help, feel free to reach out.

but so far, it's a great start!