def update
i=0
loop do
i +=1
if i <= 400
break
end
end
if i>0 and i<20
@light1.angle -=1
@light2.angle -=1
@light3.angle -=1
@light4.angle -=1
@light5.angle -=1
@light6.angle -=1
@light7.angle -=1
@light8.angle -=1
@light9.angle -=1
@light10.angle -=1
end
if i>20 and i<40
@light1.angle +=2
@light2.angle +=2
@light3.angle +=2
@light4.angle +=2
@light5.angle +=2
@light6.angle +=2
@light7.angle +=2
@light8.angle +=2
@light9.angle +=2
@light10.angle +=2
end
=begin
for i in 0..20
@light1.angle +=1
@light2.angle +=1
@light3.angle +=1
@light4.angle +=1
@light5.angle +=1
@light6.angle +=1
@light7.angle +=1
@light8.angle +=1
@light9.angle +=1
@light10.angle +=1
end
for i in 0..20
@light1.angle -=1
@light2.angle -=1
@light3.angle -=1
@light4.angle -=1
@light5.angle -=1
@light6.angle -=1
@light7.angle -=1
@light8.angle -=1
@light9.angle -=1
@light10.angle -=1
end
for i in 0..20
@light1.angle +=1
@light2.angle +=1
@light3.angle +=1
@light4.angle +=1
@light5.angle +=1
@light6.angle +=1
@light7.angle +=1
@light8.angle +=1
@light9.angle +=1
@light10.angle +=1
end
for i in 0..20
@light1.angle -=1
@light2.angle -=1
@light3.angle -=1
@light4.angle -=1
@light5.angle -=1
@light6.angle -=1
@light7.angle -=1
@light8.angle -=1
@light9.angle -=1
@light10.angle -=1
end
for i in 0..10
@light1.angle +=1
@light2.angle +=1
@light3.angle +=1
@light4.angle +=1
@light5.angle +=1
@light6.angle +=1
@light7.angle +=1
@light8.angle +=1
@light9.angle +=1
@light10.angle +=1
end
=end
=begin
loop do
for i in 0..20
@light1.angle +=1
end
for i in 0..20
@light1.angle -=1
end
if $scene != self
break
end
end
=end
def update
i=0
loop do
i +=1
if i <= 400
break
end
end
if i>0 and i<20
@light1.angle -=1
@light2.angle -=1
@light3.angle -=1
@light4.angle -=1
@light5.angle -=1
@light6.angle -=1
@light7.angle -=1
@light8.angle -=1
@light9.angle -=1
@light10.angle -=1
end
if i>20 and i<40
@light1.angle +=2
@light2.angle +=2
@light3.angle +=2
@light4.angle +=2
@light5.angle +=2
@light6.angle +=2
@light7.angle +=2
@light8.angle +=2
@light9.angle +=2
@light10.angle +=2
end
=begin
for i in 0..20
@light1.angle +=1
@light2.angle +=1
@light3.angle +=1
@light4.angle +=1
@light5.angle +=1
@light6.angle +=1
@light7.angle +=1
@light8.angle +=1
@light9.angle +=1
@light10.angle +=1
end
for i in 0..20
@light1.angle -=1
@light2.angle -=1
@light3.angle -=1
@light4.angle -=1
@light5.angle -=1
@light6.angle -=1
@light7.angle -=1
@light8.angle -=1
@light9.angle -=1
@light10.angle -=1
end
for i in 0..20
@light1.angle +=1
@light2.angle +=1
@light3.angle +=1
@light4.angle +=1
@light5.angle +=1
@light6.angle +=1
@light7.angle +=1
@light8.angle +=1
@light9.angle +=1
@light10.angle +=1
end
for i in 0..20
@light1.angle -=1
@light2.angle -=1
@light3.angle -=1
@light4.angle -=1
@light5.angle -=1
@light6.angle -=1
@light7.angle -=1
@light8.angle -=1
@light9.angle -=1
@light10.angle -=1
end
for i in 0..10
@light1.angle +=1
@light2.angle +=1
@light3.angle +=1
@light4.angle +=1
@light5.angle +=1
@light6.angle +=1
@light7.angle +=1
@light8.angle +=1
@light9.angle +=1
@light10.angle +=1
end
=end
=begin
loop do
for i in 0..20
@light1.angle +=1
end
for i in 0..20
@light1.angle -=1
end
if $scene != self
break
end
end
=end