Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
191 plots causes crash
It was my fault, it was an array over-run
here is a distance function to make up for it:
Function distance (x1 as Integer, y1 as Integer, x2 as Integer, y2 as Integer) as Integer
Dim x as Integer
Dim y as Integer

Return Sqr((x^2)+(y^2))
End Function

this bresenham line drawing algorithm lets you do line-of-sight to see if 2 units can see each other in a game

Messages In This Thread

Forum Jump:

Users browsing this thread: 1 Guest(s)