From f9902a6ea5b3e90f1866e891f43ceb7eafae266a Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 17 Oct 2021 01:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=86=E6=9E=B6=E5=85=81=E8=AE=B8=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=A4=B1=E5=8E=BB=E7=84=A6=E7=82=B9=E6=97=B6?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E7=9A=84=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 49 +++++++++------------------------------------ main.lua | 46 ++++++++++++++++++++++++++++++++++++++---- 2 files changed, 51 insertions(+), 44 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 8074dd8a..103415b7 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -215,7 +215,7 @@ function love.touchreleased(id,x,y) end end -local fnKey={NULL,NULL,NULL,NULL} +local fnKey={NULL,NULL,NULL,NULL,NULL,NULL,NULL} local function noDevkeyPressed(key) if key=="f1"then fnKey[1]() elseif key=="f2"then fnKey[2]() @@ -364,42 +364,9 @@ function love.resize(w,h) SHADER.warning:send('w',w*SCR.dpi) end -local function task_autoSoundOff() - while true do - coroutine.yield() - local v=love.audio.getVolume() - love.audio.setVolume(math.max(v-.05,0)) - if v==0 then return end - end -end -local function task_autoSoundOn() - while true do - coroutine.yield() - local v=love.audio.getVolume() - if v