OneLoneCoder / CommandLineFPS

A First Person Shooter at the command line? Yup...
599 stars 173 forks source link

floor render #7

Open BrunoSan123 opened 4 years ago

BrunoSan123 commented 4 years ago

Hello, i,m having troubles when i start to compile the floor, the wall just stay black, what i do?

BrunoSan123 commented 4 years ago

nevermind, i found the aswer, was a logic problem, in some condition i'm forgot 2 variables.

JonSTGaming commented 3 years ago

what was the error, because i am getting the same one

rafa-net commented 3 years ago

In my case I had the condition (y < nCeiling), which made the walls invisible. Changing it to (y <= nCeiling) seems to solve it, although I'm yet to understand why,because I'm a noob xD