Qbasicnews.com
Line of Sight Code Needed - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: Line of Sight Code Needed (/thread-322.html)



Line of Sight Code Needed - Jkl - 03-03-2003

I need a good or at least working raycasting or preferably shadowcasting code for use in a textual game (Nethack). If you do not know what i mean just tell me and i can provide more information or some good websites.


Line of Sight Code Needed - toonski84 - 03-03-2003

well, if you dont want to make your own engine, the rte engine by angello motto was made for exactly that purpose (currently the only game using it is nebula capture the flag).


Line of Sight Code Needed - Jkl - 03-04-2003

I guess what I really need to know is how to make a good line to cast the rays. I just need the code to draw a line from x1,y1 ro x2,y2.


Line of Sight Code Needed - na_th_an - 03-04-2003

Look in google for a bresenham algorithm.