diff --git a/src/App.vue b/src/App.vue index 78a4d0e..bef4682 100644 --- a/src/App.vue +++ b/src/App.vue @@ -162,7 +162,7 @@ function createInterval() { if (currentCoin.value.x === snake.value.cell.x && currentCoin.value.y === snake.value.cell.y) { - snake.value.length + 10 + snake.value.length++ currentCoin.value = spawnCoin() score.value++ @@ -225,4 +225,4 @@ window.addEventListener('keydown', keydown) width: 10px; overflow: hidden; } - \ No newline at end of file +