I know you keep asking, but I think it's just too complicated for someone who knows how to just give a simple tutorial. It would have to be pretty long I'm sure. You should really just download and use the existing raycaster, and you can probably learn about it from looking at it's code, too.