Inital commit
This commit is contained in:
commit
a1d223ed29
3 changed files with 83 additions and 0 deletions
22
tracking/main.lua
Normal file
22
tracking/main.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
local width = 20
|
||||
local height = 20
|
||||
local distance = 10
|
||||
|
||||
function drawGrid(pass)
|
||||
pass:setColor(0, 1, 0)
|
||||
for i=-0.5,0.5,0.05 do
|
||||
pass:line(width*-0.5, height*i, -distance, width*0.5, height*i, -distance)
|
||||
end
|
||||
|
||||
for i=-0.5,0.5,0.05 do
|
||||
pass:line(width*i, height*-0.5, -distance, width*i, height*0.5, -distance)
|
||||
end
|
||||
end
|
||||
|
||||
function lovr.draw(pass)
|
||||
|
||||
drawGrid(pass)
|
||||
pass:circle(0, 0, -distance, 0.05, 0, 0, 0, 1, 'fill')
|
||||
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue