整理代码
This commit is contained in:
@@ -101,8 +101,8 @@ title={
|
|||||||
5507, 1280,
|
5507, 1280,
|
||||||
5404, 1154,
|
5404, 1154,
|
||||||
5635, 416,
|
5635, 416,
|
||||||
-- -- 5814, 290,
|
-- 5814, 290,
|
||||||
-- -- 5878, 463,
|
-- 5878, 463,
|
||||||
5770, 542,
|
5770, 542,
|
||||||
5617, 1030,
|
5617, 1030,
|
||||||
5676, 1105,
|
5676, 1105,
|
||||||
@@ -119,35 +119,6 @@ for _,C in next,title do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
|
||||||
title2={}
|
|
||||||
for i=1,#title do title2[i]=title[i]end
|
|
||||||
title2[5]={
|
|
||||||
3123, 290,
|
|
||||||
3480, 290,
|
|
||||||
3496, 480,
|
|
||||||
3664, 290,
|
|
||||||
4017, 294,
|
|
||||||
3682, 1270,
|
|
||||||
|
|
||||||
3652, 1270,
|
|
||||||
3678, 1240,
|
|
||||||
3682, 1230,
|
|
||||||
3648, 1230,
|
|
||||||
3644, 1240,
|
|
||||||
3665, 1240,
|
|
||||||
3631, 1280,
|
|
||||||
|
|
||||||
3453, 1280,
|
|
||||||
3697, 578,
|
|
||||||
3458, 843,
|
|
||||||
3304, 842,
|
|
||||||
3251, 561,
|
|
||||||
3001, 1280,
|
|
||||||
2779, 1280,
|
|
||||||
}
|
|
||||||
]]
|
|
||||||
|
|
||||||
do--title_fan
|
do--title_fan
|
||||||
title_fan={}
|
title_fan={}
|
||||||
local sin,cos=math.sin,math.cos
|
local sin,cos=math.sin,math.cos
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
local gc=love.graphics
|
local gc=love.graphics
|
||||||
|
|
||||||
local abs=math.abs
|
|
||||||
local max,min,sin,cos=math.max,math.min,math.sin,math.cos
|
local max,min,sin,cos=math.max,math.min,math.sin,math.cos
|
||||||
local rnd=math.random
|
local rnd=math.random
|
||||||
|
|
||||||
local scene={}
|
local scene={}
|
||||||
|
|
||||||
local t1,t2,r
|
local t1,t2,animateType
|
||||||
|
|
||||||
function scene.sceneInit()
|
function scene.sceneInit()
|
||||||
BG.set()
|
BG.set()
|
||||||
BGM.play()
|
BGM.play()
|
||||||
t1,t2=0,0--Timer
|
t1,t2=0,0--Timer
|
||||||
r={}--Random animation type
|
animateType={rnd(5),rnd(5),rnd(5),rnd(5),rnd(5),rnd(5),rnd(5),rnd(5)}--Random animation type
|
||||||
for i=1,8 do r[i]=rnd(5)end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function scene.mouseDown(_,_,k)
|
function scene.mouseDown(_,_,k)
|
||||||
@@ -83,10 +81,10 @@ function scene.draw()
|
|||||||
if t>0 then
|
if t>0 then
|
||||||
gc.push("transform")
|
gc.push("transform")
|
||||||
gc.setColor(1,1,1,min(t*.025,1))
|
gc.setColor(1,1,1,min(t*.025,1))
|
||||||
titleTransform[r[i]](t,i)
|
titleTransform[animateType[i]](t,i)
|
||||||
local dt=(t1+62-5*i)%300
|
local dt=(t1+62-5*i)%300
|
||||||
if dt<20 then
|
if dt<20 then
|
||||||
gc.translate(0,abs(10-dt)-10)
|
gc.translate(0,math.abs(10-dt)-10)
|
||||||
end
|
end
|
||||||
gc.polygon("line",L[i])
|
gc.polygon("line",L[i])
|
||||||
gc.pop()
|
gc.pop()
|
||||||
|
|||||||
Reference in New Issue
Block a user