修复录像(流)的一帧误差问题,移除玩家keyRec属性

This commit is contained in:
MrZ626
2021-02-14 03:15:37 +08:00
parent fd5455e71f
commit b06d07bd47
4 changed files with 49 additions and 57 deletions

View File

@@ -125,16 +125,12 @@ end
function scene.update(dt)
local _
local P1=PLAYERS[1]
local GAME=GAME
touchMoveLastFrame=false
updateVirtualkey()
GAME.frame=GAME.frame+1
--Replay
if GAME.replaying then
_=GAME.replaying
local P1=PLAYERS[1]
local L=GAME.rep
while GAME.frame==L[_]do
local key=L[_+1]
@@ -151,21 +147,23 @@ function scene.update(dt)
GAME.replaying=_
end
touchMoveLastFrame=false
updateVirtualkey()
GAME.frame=GAME.frame+1
--Counting, include pre-das
if checkStart()then return end
--Update players
for p=1,#PLAYERS do
PLAYERS[p]:update(dt)
end
for p=1,#PLAYERS do PLAYERS[p]:update(dt)end
--Warning check
checkWarning()
--Fresh royale target
if GAME.modeEnv.royaleMode and GAME.frame%120==0 then
freshMostDangerous()
end
--Warning check
checkWarning()
end
local function drawAtkPointer(x,y)