From f53644f774dbfce1507666037eadbd19eb48631a Mon Sep 17 00:00:00 2001
From: Mathis Decoster <mathis.decoster.etu@univ-lille.fr>
Date: Mon, 8 Apr 2024 11:03:31 +0200
Subject: [PATCH] fix vies affichage

---
 client/public/res/scoreboard.json | 43 +++++++++++++++++++++++++++++++
 client/src/render.js              |  2 +-
 2 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/client/public/res/scoreboard.json b/client/public/res/scoreboard.json
index 1b0217e..6939e19 100644
--- a/client/public/res/scoreboard.json
+++ b/client/public/res/scoreboard.json
@@ -97,6 +97,49 @@
     {
       "score": -15
     },
+    {
+      "score": -15
+    },
+    {
+      "nom": "mathis",
+      "score": 25
+    },
+    {
+      "nom": "rayanou",
+      "score": 25
+    },
+    {
+      "nom": "julien",
+      "score": 20
+    },
+    {
+      "score": -15
+    },
+    {
+      "score": -15
+    },
+    {
+      "score": -15
+    },
+    {
+      "nom": "n",
+      "score": -15
+    },
+    {
+      "nom": "Xav",
+      "score": 20
+    },
+    {
+      "nom": "m",
+      "score": 40
+    },
+    {
+      "nom": "julien",
+      "score": 55
+    },
+    {
+      "score": 80
+    },
     {
       "score": -15
     }
diff --git a/client/src/render.js b/client/src/render.js
index b341703..394dc4d 100644
--- a/client/src/render.js
+++ b/client/src/render.js
@@ -61,7 +61,7 @@ export default class Render {
 	}
 
 	renderVies(avatars, context, i) {
-		this.imageCoeur.src = `/images/heart${i}.webp`;
+		this.imageCoeur.src = `/images/heart1.webp`;
 		for (let j = 0; j < avatars[i].vies; j++) {
 			context.drawImage(
 				this.imageCoeur,
-- 
GitLab