for each ray find the closest intersecting solid block, and what pixel column it intersect's with. then draw the column of pixels for that block scaled bigger or smaller based on distance. For now just colo the ceiling and floor a solid color. All this gets slow very quickly. I am sure there are plenty of c code tutorials around the internet. May be old dos code, beware.