From a7bba2c44b0452c7bf84d461945f9db02a9e932b Mon Sep 17 00:00:00 2001 From: Tangent Date: Thu, 16 May 2019 13:15:51 -0700 Subject: [PATCH] improved --- src/main.moon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.moon b/src/main.moon index 841a46b..4c39bfd 100644 --- a/src/main.moon +++ b/src/main.moon @@ -49,16 +49,18 @@ love.draw = -> -- radar blips for contact in *contacts love.graphics.setColor contact.color - if m / scale / 2 >= dist me, contact + if (m - 42) / scale / 2 >= dist me, contact love.graphics.circle "fill", w / 2 + (contact.x - me.x) * scale, h / 2 + (contact.y - me.y) * scale, 1.4 else r = math.atan2 contact.y - me.y, contact.x - me.x - love.graphics.circle "fill", w / 2 + math.cos(r) * m / 2, h / 2 + math.sin(r) * m / 2, 2 + love.graphics.circle "fill", w / 2 + math.cos(r) * (m - 42) / 2, h / 2 + math.sin(r) * (m - 42) / 2, 2 + -- actual vessels for contact in *contacts love.graphics.setColor contact.color love.graphics.circle "fill", w / 2 + contact.x - me.x, h / 2 + contact.y - me.y, 4 + -- dias love.graphics.setColor 1, 1, 1, 0.5 r = m / 2 - 25 love.graphics.circle "line", w / 2, h / 2, r