you should probably use turbowarp I made this using griffpatch's episode one and two of his 3d ray casting series. watch here. https://www.youtube.com/watch?v=M1c5TcdITVs