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

View file

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