fixed snake length
This commit is contained in:
@@ -176,7 +176,7 @@ function createInterval() {
|
|||||||
score.value++
|
score.value++
|
||||||
=======
|
=======
|
||||||
if (currentCoin.value.x === snake.value.cell.x && currentCoin.value.y === snake.value.cell.y) {
|
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()
|
currentCoin.value = spawnCoin()
|
||||||
score.value++
|
score.value++
|
||||||
>>>>>>> 61ad940 (scoreboard is implemented in the frontend)
|
>>>>>>> 61ad940 (scoreboard is implemented in the frontend)
|
||||||
@@ -354,5 +354,9 @@ input {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
</style>
|
</style>
|
||||||
>>>>>>> 61ad940 (scoreboard is implemented in the frontend)
|
>>>>>>> 61ad940 (scoreboard is implemented in the frontend)
|
||||||
|
=======
|
||||||
|
</style>
|
||||||
|
>>>>>>> 20fbb60 (fixed snake length)
|
||||||
|
|||||||
Reference in New Issue
Block a user