fixed length bug

This commit is contained in:
=
2024-01-29 21:07:31 +01:00
parent 2927c48b37
commit 8c01f465dd

View File

@@ -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;
}
</style>
</style>