need help to correct fish eyes effect for raycasting fake 3d

hi, i am making fake 3d fps game with raycasting, but i dont know how correct fish eyes effect… can you help me?


fish eyes

this is code and images of game…

thank you and good development :wink: