im getting started with LOVE. I did a simple script that is supposed to draw 10 circles at random positions on the scree.
I initialize the coordinates in load.love(), and I try to draw them in load.love() .
When I run the app, the window and the background are displayed, but not circles.
What am I doing wrong?
Code: Select all
peers={}
function love.load()
love.graphics.setBackgroundColor( 2, 60, 80 )
for i,v in ipairs(peers) do
local x = math.random(1024)
local y = math.random(768)
peers[i] = {x,y}
end
end
function love.draw()
for _,p in pairs(peers) do
love.graphics.circle("line", p[1], p[2], 10, 100)
end
end