score display fixed
This commit is contained in:
parent
3e8b9e141d
commit
edead5a412
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue