[SOLVED] Raycasting troubles
I am writing a raycasting engine right now, based off the Permadi tutorial, and I seem to have encountered two problems concerning wall drawing.
The first is that when I turn 180°, I get the exact same thing, regardless of how far away the wall behind me might be (essentially, if you look at the minimap top right (which does display the level correctly), you'd get the same images if I were to look into the top-left corner).
The second is that the walls don't render properly, as can be seen on the images below. Only difference between these two images is that I move forward a little (it gets a lot worse if I move more).
Would anybody know offhand what is happening ? Being new to this forum, I can't post enough code to provide an understanding of the way I'm trying to do this.