fixed length bug
This commit is contained in:
@@ -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++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user