improved
This commit is contained in:
parent
e48ed3ed29
commit
a7bba2c44b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user