Code: Select all
for i=0,radius*4,1 do
love.graphics.line( playerX, playerY, math.sin(math.pi(i/radius/2))*radius + playerX, math.cos(math.pi*(i/attkRad/2))*radius + playerY)
end
Thank you in advance.
Code: Select all
for i=0,radius*4,1 do
love.graphics.line( playerX, playerY, math.sin(math.pi(i/radius/2))*radius + playerX, math.cos(math.pi*(i/attkRad/2))*radius + playerY)
end
thank you for the link. Definitely noted, but I'm honestly stumped as to what function can detect these points as stated in the articlealloyed wrote: ↑Tue Aug 15, 2017 12:14 am This is called line-of-sight, or sometimes field-of-view.
Here's an article describing a few possible approaches, although it isn't the only approach out there:
http://www.redblobgames.com/articles/visibility/
Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot] and 0 guests