mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 13:55:10 +00:00
PlayerBonus system & component made (containing timer)
This commit is contained in:
@@ -21,12 +21,5 @@ namespace BBM
|
||||
Vector2f move = controllable.move.normalized() * controllable.speed;
|
||||
|
||||
movable.addForce(Vector3f(move.x, controllable.jump, move.y));
|
||||
if (controllable.speed == 0.25f)
|
||||
return;
|
||||
controllable.nextSpeedBonusRate -= dtime;
|
||||
if (controllable.nextSpeedBonusRate <= 0ns) {
|
||||
controllable.nextSpeedBonusRate = controllable.speedBonusRate;
|
||||
controllable.speed = 0.25f;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user