From edead5a4123a33c049b8bc7d830e38705e729979 Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Sat, 21 Jan 2023 09:56:37 +0100 Subject: [PATCH] score display fixed --- frontend/public/game.js | 4 ++-- frontend/src/App.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/public/game.js b/frontend/public/game.js index bbe91c6..1fc0b9d 100644 --- a/frontend/public/game.js +++ b/frontend/public/game.js @@ -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(); } diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 05d4ef5..5a7beb3 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -8,9 +8,9 @@
+ @gameFinished="this.updateUserScores()" ref="game"> - +