Compare commits
No commits in common. "main" and "prototype-1" have entirely different histories.
main
...
prototype-
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
!src/lume.lua
|
||||
*.lua
|
@ -49,18 +49,16 @@ love.draw = ->
|
||||
-- radar blips
|
||||
for contact in *contacts
|
||||
love.graphics.setColor contact.color
|
||||
if (m - 42) / scale / 2 >= dist me, contact
|
||||
if m / 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 - 42) / 2, h / 2 + math.sin(r) * (m - 42) / 2, 2
|
||||
love.graphics.circle "fill", w / 2 + math.cos(r) * m / 2, h / 2 + math.sin(r) * m / 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