From 8c01f465dd2450c6fcc23d0159222170609cf465 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 29 Jan 2024 21:07:31 +0100 Subject: [PATCH] fixed length bug --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +