mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-28 00:31:50 +00:00
timer added to speedup bonus (15s)
This commit is contained in:
@@ -46,7 +46,8 @@ namespace BBM {
|
||||
if (!player.hasComponent<MovableComponent>())
|
||||
return;
|
||||
auto &controllable = player.getComponent<ControllableComponent>();
|
||||
controllable.speed += 0.02f;
|
||||
controllable.speed = 0.35f;
|
||||
controllable.nextSpeedBonusRate = controllable.speedBonusRate;
|
||||
}
|
||||
|
||||
void Bonus::IgnoreWallsBonus(WAL::Entity &player, const WAL::Entity &bonus, CollisionComponent::CollidedAxis axis)
|
||||
|
||||
Reference in New Issue
Block a user