diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2023-11-04 23:08:23 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2023-11-04 23:08:23 +0000 |
| commit | 0b344940b98577f7396b80621eb07d472529580b (patch) | |
| tree | c86c30aa4e1306a8913c8172f58b1750b1d89bd7 /frontend/src/components/TetrisBoard.vue | |
| parent | 1aba59332b389ac58cb001e97ba8062a689985af (diff) | |
dsjkfghskdljf
Diffstat (limited to 'frontend/src/components/TetrisBoard.vue')
| -rw-r--r-- | frontend/src/components/TetrisBoard.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/TetrisBoard.vue b/frontend/src/components/TetrisBoard.vue index 4e5911b..d7bd2d2 100644 --- a/frontend/src/components/TetrisBoard.vue +++ b/frontend/src/components/TetrisBoard.vue @@ -113,7 +113,7 @@ const tick = () => { break; } - if (gameSpeed > 150 && elapsedBlocks % 3 === 0) { + if (!props.networked && gameSpeed > 150 && elapsedBlocks % 3 === 0) { gameSpeed = Math.max(150, gameSpeed - (gameSpeed > 300 ? 75 : 10)); rescheduleTickTimer(); } @@ -129,7 +129,7 @@ const tick = () => { function startGame() { elapsedBlocks = 0; - gameSpeed = 1000; + gameSpeed = props.networked ? 350 : 1000; nextTetrominoes.value = randomiseNextTetrominoes(); gameInProgress = true; notificationMessage.value = ''; |
