local gc=love.graphics local Timer=love.timer.getTime local sin=math.sin local scene={} function scene.sceneInit() if BGM.nowPlay then for i=1,BGM.len do if BGM.list[i]==BGM.nowPlay then sceneTemp=i--Music selected return end end else sceneTemp=1 end end function scene.wheelMoved(_,y) wheelScroll(y) end function scene.keyDown(key) local S=sceneTemp if key=="down"then if S1 then sceneTemp=S-1 SFX.play("move",.7) end elseif key=="return"or key=="space"then if BGM.nowPlay~=BGM.list[S]then BGM.play(BGM.list[S]) if SETTING.bgm>0 then SFX.play("click")end else BGM.stop() end elseif key=="escape"then SCN.back() end end function scene.draw() gc.setColor(1,1,1) setFont(50) gc.print(BGM.list[sceneTemp],320,355) setFont(35) if sceneTemp>1 then gc.print(BGM.list[sceneTemp-1],320,350-30)end if sceneTemp2 then gc.print(BGM.list[sceneTemp-2],320,350-50)end if sceneTemp