score display fixed

This commit is contained in:
s-prechtl 2023-01-21 09:56:37 +01:00
parent 3e8b9e141d
commit edead5a412
2 changed files with 4 additions and 4 deletions

View file

@ -77,7 +77,7 @@ function setupObstacleConsts() {
}
function setupFont() {
textSize(150);
textSize(75);
textAlign(CENTER);
textFont(font);
}
@ -171,7 +171,7 @@ function exportToLocalStorage() {
function displayScore() {
push();
fill(195, 33, 34);
text(score, 0, height / 10, width, height);
text(score, 0, height / 8, width, height);
pop();
}

View file

@ -8,9 +8,9 @@
</div>
<div class="row">
<Game :class="user ? '' : 'hidden'" v-bind:user-id=this.userId class="col"
@gameFinished="this.updateUserScores()">
@gameFinished="this.updateUserScores()" ref="game">
</Game>
<Login v-if="!user" @userChange="(event) => {this.updateUser(event)}">
<Login v-if="!user" @userChange="(event) => {this.updateUser(event);}">
</Login>
</div>
<div class="row">