Code: Select all
function circle(x,y,r)
local angle = 0
x = x + 0.5 - (x + 0.5) % 1
y = y + 0.5 - (y + 0.5) % 1
r = r + 0.5
while angle < 2*math.pi do
angle = angle + r/r^2
local xs = (x + r * math.cos (angle))
local ys = (y + r * math.sin (angle))
game.surfaces[1].create_entity{name = "wooden-chest", position= {xs,ys},force='player'}
end
end
Code: Select all
/c circle(0,0,15)Blue Arrow - Chests x2
Code: Select all
/c circle(0,0,10)
