Compare commits
2 Commits
prototype-
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
a7bba2c44b | ||
|
e48ed3ed29 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
!src/lume.lua
|
||||
*.lua
|
@ -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