Skip to content
Snippets Groups Projects
Commit f53644f7 authored by Mathis Decoster's avatar Mathis Decoster :apple:
Browse files

fix vies affichage

parent a65135d5
No related branches found
No related tags found
No related merge requests found
...@@ -97,6 +97,49 @@ ...@@ -97,6 +97,49 @@
{ {
"score": -15 "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 "score": -15
} }
......
...@@ -61,7 +61,7 @@ export default class Render { ...@@ -61,7 +61,7 @@ export default class Render {
} }
renderVies(avatars, context, i) { 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++) { for (let j = 0; j < avatars[i].vies; j++) {
context.drawImage( context.drawImage(
this.imageCoeur, this.imageCoeur,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment