Archived from groups: rec.games.roguelike.development (More info?)
need help... code is ok, or just math and pseudo code (even better)
I need a way to figure out exactly which squares (on a grid based map)
are crossed by a missle type object. It's easy to eyeball, but I can't
seem to wrap my head around the math to reliably draw a line from
(x1,y1) to (x2,y2).
I can handle straight lines and true diagonal lines no problem, but in a
case where the "line" goes "staggered"... I just cant see it. Not enough
sleep or caffeine probably.