新logo与新标题图

This commit is contained in:
MrZ626
2021-01-30 00:40:55 +08:00
parent 70cd39a55f
commit 91e27ad4d8
11 changed files with 66 additions and 11 deletions

View File

@@ -122,8 +122,6 @@ if SETTING.fullscreen then love.window.setFullscreen(true)end
--Initialize image libs
IMG.init{
batteryImage="mess/power.png",
title="mess/title.png",
title_color="mess/title_colored.png",
lock="mess/lock.png",
dialCircle="mess/dialCircle.png",
dialNeedle="mess/dialNeedle.png",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -22,7 +22,7 @@ function scene.draw()
local t=TIME()
--Sponsor code
gc.draw(IMG.title,280,610,.1,1+.05*sin(t*2.6),nil,206,35)
gc.draw(TEXTURE.title,280,610,.1,.4+.03*sin(t*2.6),nil,580,118)
gc.setLineWidth(3)
gc.rectangle("line",18,18,263,263)
gc.rectangle("line",1012,18,250,250)

View File

@@ -79,7 +79,7 @@ function scene.draw()
gc.setColor(1,1,1)
--Title
gc.draw(IMG.title_color,60,30,nil,1.3)
gc.draw(TEXTURE.title_color,20,20,nil,.5)
--Quick play
setFont(30)

View File

@@ -59,7 +59,7 @@ function scene.draw()
if selected>2 then gc.print(bgmList[selected-2],320,350-50)end
if selected<BGM.getCount()-1 then gc.print(bgmList[selected+2],320,350+110)end
gc.draw(IMG.title,840,220,nil,1.5,nil,206,35)
gc.draw(TEXTURE.title,840,220,nil,.5,nil,580,118)
if BGM.nowPlay then
setFont(50)
local t=TIME()
@@ -69,7 +69,7 @@ function scene.draw()
local a=-t%2.3/2
if a<1 then
gc.setColor(1,1,1,a)
gc.draw(IMG.title_color,840,220,nil,1.5+.1-.1*a,1.5+.3-.3*a,206,35)
gc.draw(TEXTURE.title_color,840,220,nil,.5+.062-.062*a,.5+.126-.126*a,580,118)
end
gc.setColor(1,1,1,.4)

View File

@@ -25,7 +25,7 @@ local function onVirtualkey(x,y)
end
local hideChatBox=false
local textBox=WIDGET.newTextBox{name="texts",x=980,y=20,w=290,h=300,hide=function()return hideChatBox end}
local textBox=WIDGET.newTextBox{name="texts",x=300,y=80,w=680,h=620,hide=function()return hideChatBox end}
local playing
local lastBackTime=0
@@ -313,7 +313,7 @@ function scene.draw()
end
--Players
for p=1,#PLAYERS do
for p=hideChatBox and 1 or 2,#PLAYERS do
PLAYERS[p]:draw()
end

View File

@@ -55,8 +55,8 @@ function scene.draw()
for i=1,#L do
mStr(L[i],640,800+70*i-T)
end
mDraw(IMG.title_color,640,800-T,nil,2)
mDraw(IMG.title_color,640,2160-T,nil,2)
mDraw(TEXTURE.title_color,640,800-T,nil,.6)
mDraw(TEXTURE.title_color,640,2160-T,nil,.6)
if time>55 then gc.print("CLICK ME →",50,550,-.5)end
end

View File

@@ -87,7 +87,7 @@ function scene.draw()
end
local t=TIME()
gc.draw(IMG.title,260,615,.2+.04*sin(t*3),nil,nil,206,35)
gc.draw(TEXTURE.title,260,615,.2+.04*sin(t*3),.4,nil,580,118)
local r=t*2
local R=int(r)%7+1

View File

@@ -33,6 +33,63 @@ gc.setLineWidth(4)
gc.line(0,20,40,20)
gc.line(20,0,20,40)
gc.setDefaultFilter("linear","linear")
local titleTriangles={}
for i=1,8 do titleTriangles[i]=love.math.triangulate(title[i])end
--Middle: 580,118
TEXTURE.title=C(1160,236)
for i=1,8 do
gc.translate(12*i,i==1 and 8 or 14)
gc.setLineWidth(16)
gc.setColor(1,1,1)
gc.polygon("line",title[i])
gc.setColor(0,0,0)
for j=1,#titleTriangles[i]do
gc.polygon("fill",titleTriangles[i][j])
end
gc.translate(-12*i,i==1 and -8 or -14)
end
TEXTURE.title_color=C(1160,236)
local titleColor={
COLOR.lGrape,
COLOR.lCyan,
COLOR.lBlue,
COLOR.lOrange,
COLOR.lFire,
COLOR.lMagenta,
COLOR.lGreen,
COLOR.lYellow,
}
for i=1,8 do
gc.translate(12*i,i==1 and 8 or 14)
gc.setLineWidth(16)
gc.setColor(1,1,1)
gc.polygon("line",title[i])
gc.setLineWidth(4)
gc.setColor(0,0,0)
for j=1,#titleTriangles[i]do
gc.polygon("fill",titleTriangles[i][j])
end
gc.setColor(titleColor[i])
gc.translate(-4,-4)
for j=1,#titleTriangles[i]do
gc.polygon("fill",titleTriangles[i][j])
end
gc.translate(4,4)
gc.translate(-12*i,i==1 and -8 or -14)
end
gc.setCanvas()
return TEXTURE