整理代码
This commit is contained in:
@@ -101,8 +101,8 @@ title={
|
||||
5507, 1280,
|
||||
5404, 1154,
|
||||
5635, 416,
|
||||
-- -- 5814, 290,
|
||||
-- -- 5878, 463,
|
||||
-- 5814, 290,
|
||||
-- 5878, 463,
|
||||
5770, 542,
|
||||
5617, 1030,
|
||||
5676, 1105,
|
||||
@@ -119,35 +119,6 @@ for _,C in next,title do
|
||||
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
|
||||
title_fan={}
|
||||
local sin,cos=math.sin,math.cos
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
local gc=love.graphics
|
||||
|
||||
local abs=math.abs
|
||||
local max,min,sin,cos=math.max,math.min,math.sin,math.cos
|
||||
local rnd=math.random
|
||||
|
||||
local scene={}
|
||||
|
||||
local t1,t2,r
|
||||
local t1,t2,animateType
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set()
|
||||
BGM.play()
|
||||
t1,t2=0,0--Timer
|
||||
r={}--Random animation type
|
||||
for i=1,8 do r[i]=rnd(5)end
|
||||
animateType={rnd(5),rnd(5),rnd(5),rnd(5),rnd(5),rnd(5),rnd(5),rnd(5)}--Random animation type
|
||||
end
|
||||
|
||||
function scene.mouseDown(_,_,k)
|
||||
@@ -83,10 +81,10 @@ function scene.draw()
|
||||
if t>0 then
|
||||
gc.push("transform")
|
||||
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
|
||||
if dt<20 then
|
||||
gc.translate(0,abs(10-dt)-10)
|
||||
gc.translate(0,math.abs(10-dt)-10)
|
||||
end
|
||||
gc.polygon("line",L[i])
|
||||
gc.pop()
|
||||
|
||||
Reference in New Issue
Block a user