战斗速度
This commit is contained in:
parent
e73346b5d6
commit
045b774449
@ -231,6 +231,7 @@ function BattleUIPVP:enterShowBoardAni(callback)
|
|||||||
self.boardNode:setVisible(true)
|
self.boardNode:setVisible(true)
|
||||||
self.boardNode:setAnchoredPositionX(0)
|
self.boardNode:setAnchoredPositionX(0)
|
||||||
self.enterShowBoardSeq = self.root:createBindTweenSequence()
|
self.enterShowBoardSeq = self.root:createBindTweenSequence()
|
||||||
|
self.enterShowBoardSeq:AppendInterval(0.5)
|
||||||
self.enterShowBoardSeq:AppendCallback(function()
|
self.enterShowBoardSeq:AppendCallback(function()
|
||||||
for posId, entity in pairs(self.battleController.battleData:getGridEnties()) do
|
for posId, entity in pairs(self.battleController.battleData:getGridEnties()) do
|
||||||
if entity:getCell() then
|
if entity:getCell() then
|
||||||
|
|||||||
@ -21,6 +21,10 @@ local SIDE_DEF = BattleConst.SIDE_DEF
|
|||||||
function BattleBaseData:getRowCount()
|
function BattleBaseData:getRowCount()
|
||||||
return BattleConst.PVP_ROW_COUNT
|
return BattleConst.PVP_ROW_COUNT
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BattleBaseData:getTimeScaleBase()
|
||||||
|
return 1
|
||||||
|
end
|
||||||
---------------------------------end按需重写的方法-------------------------------
|
---------------------------------end按需重写的方法-------------------------------
|
||||||
|
|
||||||
function BattleBaseData:init(params)
|
function BattleBaseData:init(params)
|
||||||
@ -30,7 +34,7 @@ function BattleBaseData:init(params)
|
|||||||
self.needBattleExp = self:getLvNeedExp()
|
self.needBattleExp = self:getLvNeedExp()
|
||||||
self.addLvCount = 0
|
self.addLvCount = 0
|
||||||
self.commonSelectSkillCount = 0
|
self.commonSelectSkillCount = 0
|
||||||
self.timeScale = BattleConst.TIME_SCALE.LEVEL_1
|
self.timeScale = BattleConst.TIME_SCALE.LEVEL_1 * self:getTimeScaleBase()
|
||||||
self.lockElementMap = {}
|
self.lockElementMap = {}
|
||||||
self.data.timeSpeed = 1
|
self.data.timeSpeed = 1
|
||||||
self.data.lvDirty = false
|
self.data.lvDirty = false
|
||||||
@ -109,6 +113,7 @@ function BattleBaseData:setTimeSpeed(timeSpeed, timeScale)
|
|||||||
else
|
else
|
||||||
self.timeScale = timeScale or BattleConst.TIME_SCALE.LEVEL_1
|
self.timeScale = timeScale or BattleConst.TIME_SCALE.LEVEL_1
|
||||||
end
|
end
|
||||||
|
self.timeScale = self.timeScale * self:getTimeScaleBase()
|
||||||
self.data.timeSpeed = timeSpeed
|
self.data.timeSpeed = timeSpeed
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -6,4 +6,8 @@ function BattlePVPData:getRowCount()
|
|||||||
return BattleConst.PVP_ROW_COUNT
|
return BattleConst.PVP_ROW_COUNT
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BattlePVPData:getTimeScaleBase()
|
||||||
|
return 1.5
|
||||||
|
end
|
||||||
|
|
||||||
return BattlePVPData
|
return BattlePVPData
|
||||||
Loading…
x
Reference in New Issue
Block a user