音乐室显示音乐作者

This commit is contained in:
MrZ626
2021-04-13 02:17:20 +08:00
parent df1633f011
commit 8889323476

View File

@@ -1,7 +1,11 @@
local gc=love.graphics
local sin=math.sin
local author={
empty="ERM",
["how feeling"]="????",
}
local scene={}
local selected--Music selected
@@ -65,10 +69,13 @@ function scene.draw()
gc.draw(TEXTURE.title,840,220,nil,.5,nil,580,118)
if BGM.nowPlay then
setFont(50)
local t=TIME()
setFont(50)
gc.setColor(sin(t*.5)*.2+.8,sin(t*.7)*.2+.8,sin(t)*.2+.8)
gc.print(BGM.nowPlay,710,500)
setFont(35)
gc.setColor(1,sin(t*2.6)*.5+.5,sin(t*2.6)*.5+.5)
gc.print(author[BGM.nowPlay]or"MrZ",680,465)
local a=-t%2.3/2
if a<1 then