Code: Select all
--[[
猜古诗游戏
]]
--定义每一个五变形的点坐标位置
startx=300
starty=200
circlerad=25
circleseg=1000
bulletsite={}
--需要画出的一排最小的数量
minnum=3
function love.load()
end
function love.draw()
love.graphics.setBackgroundColor(213,213,200);--背景色
love.graphics.setColor(300, 100, 100);--前景色
--[[
love.graphics.circle("line", startx, starty, circlerad, circleseg);
love.graphics.circle("line", startx+50, starty, circlerad, circleseg);
love.graphics.circle("line", startx+100, starty, circlerad, circleseg);
love.graphics.circle("line", startx, starty+50, circlerad, circleseg);
love.graphics.circle("line", startx+50, starty+50, circlerad, circleseg);
]]
--循环打印出圈圈
for j=1,2 do
for i=1,minnum do
love.graphics.circle("line", startx+i*50, starty+(j-1)*50, circlerad, circleseg);
end
minnum=minnum+2
end
end
function love.update()
end