增加联网游戏击杀对手判定和音效
This commit is contained in:
@@ -1683,9 +1683,15 @@ function Player:die()--Called both when win/lose!
|
||||
self.visTime[i][j]=min(self.visTime[i][j],20)
|
||||
end
|
||||
end
|
||||
if GAME.NET and self.id==1 then
|
||||
ins(GAME.rep,GAME.frame+260)
|
||||
ins(GAME.rep,0)
|
||||
if GAME.NET then
|
||||
if self.id==1 then
|
||||
ins(GAME.rep,GAME.frame+260)
|
||||
ins(GAME.rep,0)
|
||||
else
|
||||
if self.lastRecv and self.lastRecv.id==1 then
|
||||
SFX.play("collect")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
function Player:win(result)
|
||||
|
||||
Reference in New Issue
Block a user