Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local model = testentitymodel
- c = {}
- function loadcircle()
- cor = {}
- for i = 1,6,2 do
- -- local x = math.random( 1, 400 )
- -- local y = math.random( 1, 400 )
- cor[i] = math.random( 1, 400 )
- cor[i + 1] = math.random( 1, 400 )
- -- table.insert( cor, )
- end
- for i = 1,#cor do
- table.insert( c, cor[ i ] )
- end
- end
- function drawcircle()
- love.graphics.setColor( 16, 16, 255 )
- for i = 1,#c,2 do
- love.graphics.circle( "fill", c[ i ], c[ i+1 ], 10, 100 )
- end
- end
- function circlecheck()
- for i = 1,#c,2 do
- cix = c[ i ]
- ciy = c[ i+1 ]
- print( cix )
- print( ciy )
- if px >= c[ i ] - 25 and px <= c[ i ] + 25 and py >= ciy - 25 and py <= ciy + 25 then
- if mx >= c[ i ] - 10 and mx <= c[ i ] + 10 and my >= ciy - 10 and my <= ciy + 10 then
- print( "yes" )
- table.remove( c, i + 1 )
- table.remove( c, i )
- end
- end
- end
- end
- function listcircles()
- for i,v in ipairs( cor ) do
- print( i, v )
- end
- if #cor == 0 then
- print ( "yep, she's empty" )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement