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