dd
This commit is contained in:
@@ -29,7 +29,7 @@ export class BattleMoveSystem extends ecs.ComblockSystem implements ecs.ISystemU
|
||||
// if(view.fac==1){
|
||||
if(view.is_stop||view.is_dead||view.DEBUFF_STUN>0 ||view.DEBUFF_FROST>0) return //停止移动或者死亡不移动
|
||||
// 计算移动量
|
||||
const delta = (view.speed/3) * this.dt * move.direction;
|
||||
const delta = ((view.speed-view.DEBUFF_SLOW)/3) * this.dt * move.direction;
|
||||
const newX = view.node.position.x + delta;
|
||||
|
||||
view.status_change("move")
|
||||
|
||||
Reference in New Issue
Block a user