From 7983c3a645fdd9dd58dacc3ec48ce5341c26ce8b Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 17 Sep 2020 21:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=9E=E6=94=BE=E5=BD=95?= =?UTF-8?q?=E5=83=8F=E6=97=B6=E9=97=B4=E8=BD=B4=E9=94=99=E5=BC=80=E4=B8=80?= =?UTF-8?q?=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player.lua | 6 +++--- parts/scenes.lua | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/parts/player.lua b/parts/player.lua index ca182c00..291c9742 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -817,7 +817,7 @@ do--function Pdraw_norm(P) --Draw Hold if ENV.hold then gc.push("transform") - gc.translate(-140,116)--TODO: adjust needed + gc.translate(-140,116) gc.setColor(0,0,0,.4)gc.rectangle("fill",0,-80,124,80) gc.setColor(1,1,1)gc.rectangle("line",0,-80,124,80) mText(drawableText.hold,62,-131) @@ -1126,7 +1126,7 @@ end local function pressKey_Rec(P,i) if P.keyAvailable[i]then if game.recording then - ins(game.rec,game.frame) + ins(game.rec,game.frame+1) ins(game.rec,i) end P.keyPressing[i]=true @@ -1142,7 +1142,7 @@ local function pressKey_Rec(P,i) end local function releaseKey_Rec(P,i) if game.recording then - ins(game.rec,game.frame) + ins(game.rec,game.frame+1) ins(game.rec,-i) end P.keyPressing[i]=false diff --git a/parts/scenes.lua b/parts/scenes.lua index edc717f3..2f997c42 100644 --- a/parts/scenes.lua +++ b/parts/scenes.lua @@ -1742,6 +1742,7 @@ do--play function Tmr.play(dt) local _ local P1=players[1] + local game=game game.frame=game.frame+1 stat.time=stat.time+dt