From 88893234762d60339c6034d21e796e61a9473b2b Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 13 Apr 2021 02:17:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E4=B9=90=E5=AE=A4=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=9F=B3=E4=B9=90=E4=BD=9C=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/music.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/parts/scenes/music.lua b/parts/scenes/music.lua index 0289e344..b98f7bcd 100644 --- a/parts/scenes/music.lua +++ b/parts/scenes/music.lua @@ -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