Compare commits

..
2 Commits
Author SHA1 Message Date
ilia e7a98546f2 Merge pull request 'Feature/advanced game mechanics' (#5) from feature/advanced-game-mechanics into main
Build and push / build (push) Successful in 40s
Reviewed-on: #5
2026-07-19 15:09:20 +00:00
Ilia Mashkov b7ca56c99c feat(perk): Добавлен таймаут для бонуса увеличения размера ракетки и бонуса замедления скорости мяча
Build and push / build (push) Skipped
Build and push / build (pull_request) Successful in 43s
2026-07-19 18:02:33 +03:00
+1
View File
@@ -58,6 +58,7 @@ export function updatePerks(game, containerHeight, deltaTime) {
ball.increaseSpeed(-1 * PERK_BALL_SPEED_DECREASE);
}
}
// ponytail: wall-clock timer, game never pauses so no need to tie to deltaTime
setTimeout(() => {
for (const ball of game.balls) {
ball.increaseSpeed(PERK_BALL_SPEED_DECREASE);