修复本地混战模式ai死亡时报错,微调胜利/失败文本显示相关代码

This commit is contained in:
MrZ626
2021-05-02 11:19:02 +08:00
parent 7017901594
commit 216bb4ea87
10 changed files with 27 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ local gc_stencil,gc_setStencilTest=gc.stencil,gc.setStencilTest
local int,ceil,rnd=math.floor,math.ceil,math.random
local max,min,sin,modf=math.max,math.min,math.sin,math.modf
local setFont,mStr=setFont,mStr
local setFont,mDraw,mStr=setFont,mDraw,mStr
local TIME=TIME
local frameColorList={
@@ -867,7 +867,7 @@ function draw.small(P)
--Draw result
if P.result then
gc_setColor(1,1,1,min(P.endCounter,60)*.01)
setFont(20)mStr(drawableText[P.result],32,47)
setFont(20)mDraw(drawableText[P.result],30,60,nil,P.size)
setFont(15)mStr(P.modeData.place,30,82)
end
gc_pop()

View File

@@ -1702,7 +1702,7 @@ function Player:win(result)
self:changeAtk()
end
if self.type=='human'then
GAME.result=result or'win'
GAME.result=result or'gamewin'
SFX.play('win')
VOC.play('win')
if GAME.modeEnv.royaleMode then
@@ -1807,7 +1807,7 @@ function Player:lose(force)
self:showTextF(self.modeData.place,0,120,60,'appear',.26,.9)
end
self.gameEnv.keepVisible=self.gameEnv.visible~='show'
self:showTextF(text.gameover,0,0,60,'appear',.26,.9)
self:showTextF(text.lose,0,0,90,'appear',.26,.9)
if self.type=='human'then
GAME.result='gameover'
SFX.play('fail')