fixed snake length

This commit is contained in:
2024-02-12 12:09:14 +01:00
parent b055ce52ee
commit 9742140664

View File

@@ -176,7 +176,7 @@ function createInterval() {
score.value++
=======
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++
>>>>>>> 61ad940 (scoreboard is implemented in the frontend)
@@ -354,5 +354,9 @@ input {
padding: 5px;
width: 100%;
}
<<<<<<< HEAD
</style>
>>>>>>> 61ad940 (scoreboard is implemented in the frontend)
=======
</style>
>>>>>>> 20fbb60 (fixed snake length)