2020-10-04 01:13:34 +00:00
|
|
|
function arrow(x, y, w, h, a)
|
2020-10-04 01:18:24 +00:00
|
|
|
love.graphics.line(
|
|
|
|
x + w/2 + math.sin(math.rad(a + 180)) * w/2 * 0.8, y + h/2 + math.cos(math.rad(a + 180)) * h/2,
|
|
|
|
x + w/2 + math.sin(math.rad(a)) * w/2 * 0.8, y + h/2 + math.cos(math.rad(a)) * w/2
|
|
|
|
)
|
|
|
|
love.graphics.line(
|
|
|
|
x + w/2 + math.sin(math.rad(a + 180)) * w/2 * 0.8, y + h/2 + math.cos(math.rad(a + 180)) * h/2,
|
|
|
|
x + w/2 + math.sin(math.rad(a + 100)) * w/2 * 0.8, y + h/2 + math.cos(math.rad(a + 100)) * h/2
|
|
|
|
)
|
|
|
|
love.graphics.line(
|
|
|
|
x + w/2 + math.sin(math.rad(a + 180)) * w/2 * 0.8, y + h/2 + math.cos(math.rad(a + 180)) * h/2,
|
|
|
|
x + w/2 + math.sin(math.rad(a - 100)) * w/2 * 0.8, y + h/2 + math.cos(math.rad(a - 100)) * h/2
|
|
|
|
)
|
2020-10-04 01:13:34 +00:00
|
|
|
end
|