Compare commits
2 Commits
d3b4efa9ae
...
f943de05cd
| Author | SHA1 | Date | |
|---|---|---|---|
| f943de05cd | |||
| 3e53f6e45c |
@@ -315,7 +315,6 @@ watch(
|
||||
0px -1px 2px 2px #111;
|
||||
}
|
||||
|
||||
|
||||
.nds2d-screen {
|
||||
position: absolute;
|
||||
width: 51.5%;
|
||||
|
||||
@@ -204,13 +204,13 @@ const randomFoodPos = (): THREE.Vector2 => {
|
||||
};
|
||||
|
||||
const eat = () => {
|
||||
highScore.value = Math.max(highScore.value, score);
|
||||
food.copy(randomFoodPos());
|
||||
score += 1;
|
||||
highScore.value = Math.max(highScore.value, score);
|
||||
|
||||
atlas.audio.duplicate.play(0.35);
|
||||
|
||||
if (score === 40) {
|
||||
if (score >= 25) {
|
||||
achievements.unlock("snake_score_25");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user