修复Pong得分判定错误

This commit is contained in:
MrZ626
2020-10-06 18:10:43 +08:00
parent 09d78e52f6
commit 36460f5d1f

View File

@@ -759,7 +759,7 @@ do--pong
end
elseif S.state==2 then--Game over
if x<-120 or x>1400 or y<-40 or y>760 then
local P=x>1400 and S.p1 or S.p2
local P=x>640 and S.p1 or S.p2
P.score=P.score+1
TEXT.show("+1",x>1400 and 470 or 810,226,50,"score")
SFX.play("reach")