W64KNGQ7BUJCWSB674W2K6H7PMLEILX6YT7UAHCH7KZZYBD23Y2AC
on.initialize = function()
love.window.setTitle('night')
local rand = love.math.random
for i=1,100 do
table.insert(Stars, {
x=rand()*800-400,
y=rand()*600-300,
color=rand(),
radius=rand()*3
})
end
end
{"Angle":127,"on.update":139,"on.initialize":144,"Stars":120,"Night_blue":27,"draw_debug":131,"on.draw":141,"Debug_state":128,"parent":143}
on.initialize = function()
print('aaa')
love.window.setTitle('night')
local rand = love.math.random
for i=1,100 do
table.insert(Stars, {
x=rand()*800-400,
y=rand()*600-300,
color=rand(),
radius=rand()*3
})
end
end
{"Stars":120,"Night_blue":27,"on.draw":141,"on.update":139,"parent":142,"Angle":127,"draw_debug":131,"Debug_state":128,"on.initialize":143}
on.initialize = function()
love.window.setTitle('night')
local rand = love.math.random
for i=1,100 do
table.insert(Stars, {
x=rand()*800-400,
y=rand()*600-300,
color=rand(),
radius=rand()*3
})
end
end
{"Angle":127,"draw_debug":131,"Debug_state":128,"Night_blue":27,"on.initialize":142,"on.draw":141,"on.update":139,"Stars":120,"parent":141}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"draw_debug":131,"Debug_state":128,"Night_blue":27,"Stars":120,"parent":140,"Angle":127,"on.draw":141,"on.update":139,"on.initialize":129}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
draw_debug()
end
{"Angle":127,"draw_debug":131,"parent":139,"Debug_state":128,"Night_blue":27,"on.draw":140,"on.update":139,"Stars":120,"on.initialize":129}
on.update = function(dt)
local P = 10 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Angle":127,"draw_debug":131,"parent":138,"Debug_state":128,"Night_blue":27,"on.draw":133,"on.update":139,"Stars":120,"on.initialize":129}
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Angle":127,"draw_debug":131,"parent":137,"Debug_state":128,"Night_blue":27,"on.draw":133,"on.update":138,"Stars":120,"on.initialize":129}
on.update = function(dt)
local P = 10 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"Angle":127,"draw_debug":131,"parent":136,"Debug_state":128,"Night_blue":27,"on.draw":133,"on.update":137,"Stars":120,"on.initialize":129}
on.update = function(dt)
local P = 60 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"on.draw":133,"on.update":136,"Angle":127,"on.initialize":129,"Stars":120,"parent":135,"draw_debug":131,"Debug_state":128,"Night_blue":27}
on.update = function(dt)
local P = 5 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"on.draw":133,"on.update":135,"Angle":127,"on.initialize":129,"Stars":120,"parent":134,"draw_debug":131,"Debug_state":128,"Night_blue":27}
on.update = function(dt)
local P = 30 -- Period in seconds
local t = (app.Current_time - math.floor(app.Current_time/P)*P)
-- t is between 0 and P
assert(0 <= t)
assert(t <= P)
if t > P/2 then
Night_blue = (P-t)/(P/2)
else
Night_blue = t/(P/2)
end
Angle = t*2*math.pi/P
table.insert(Debug_state, Night_blue)
if #Debug_state > 800 then
table.remove(Debug_state, 1)
end
end
{"on.draw":133,"on.update":134,"Angle":127,"on.initialize":129,"Stars":120,"parent":133,"draw_debug":131,"Debug_state":128,"Night_blue":27}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"on.draw":133,"on.update":126,"Angle":127,"on.initialize":129,"Stars":120,"parent":132,"draw_debug":131,"Debug_state":128,"Night_blue":27}
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
draw_debug()
end
{"on.draw":132,"on.update":126,"Angle":127,"on.initialize":129,"Stars":120,"parent":131,"draw_debug":131,"Debug_state":128,"Night_blue":27}
{"on.draw":130,"on.update":126,"Angle":127,"on.initialize":129,"Stars":120,"parent":130,"draw_debug":131,"Debug_state":128,"Night_blue":27}
draw_debug = function()
love.graphics.setColor(1,1,1)
love.graphics.line(0,300, 800,300)
for x,d in ipairs(Debug_state) do
circ('fill', x, d*600, 2)
end
end
on.draw = function()
love.graphics.clear(0,0,Night_blue)
if #Stars == 0 then
for i=1,100 do
table.insert(Stars, {x=love.math.random()*800-400, y=love.math.random()*600-300, color=love.math.random(), radius=love.math.random()*3})
end
end
love.graphics.push()
love.graphics.translate(400,300)
love.graphics.rotate(Angle)
for _,star in ipairs(Stars) do
love.graphics.setColor(star.color, star.color, 0)
love.graphics.circle('fill', star.x,star.y, star.radius)
end
love.graphics.pop()
--draw_debug()
end
{"Angle":127,"Night_blue":27,"draw_debug":94,"parent":129,"Debug_state":128,"on.draw":130,"on.update":126,"on.initialize":129,"Stars":120}
on.initialize = function()
local rand = love.math.random
for i=1,100 do
table.insert(Stars, {
x=rand()*800-400,
y=rand()*600-300,
color=rand(),
radius=rand()*3
})
end
end
{"Angle":127,"Night_blue":27,"draw_debug":94,"parent":128,"Debug_state":128,"on.draw":121,"on.update":126,"on.initialize":129,"Stars":120}