LB no float
This commit is contained in:
джерело
f9ae4f9a42
коміт
84794fe5c3
1 змінених файлів з 1 додано та 1 видалено
|
@ -54,7 +54,7 @@ class LeaderBoard {
|
||||||
this.ctx.fillText(p.name, this.px+30, this.py+120+20*this.nbjoueur);
|
this.ctx.fillText(p.name, this.px+30, this.py+120+20*this.nbjoueur);
|
||||||
this.ctx.fillText(p.kill, this.px+180, this.py+120+20*this.nbjoueur);
|
this.ctx.fillText(p.kill, this.px+180, this.py+120+20*this.nbjoueur);
|
||||||
this.ctx.fillText(p.death, this.px+200, this.py+120+20*this.nbjoueur);
|
this.ctx.fillText(p.death, this.px+200, this.py+120+20*this.nbjoueur);
|
||||||
this.ctx.fillText(p.kill/p.death, this.px+220, this.py+120+20*this.nbjoueur);
|
this.ctx.fillText(Math.round(10*p.kill/p.death)/10, this.px+220, this.py+120+20*this.nbjoueur);
|
||||||
|
|
||||||
this.nbjoueur++
|
this.nbjoueur++
|
||||||
}
|
}
|
||||||
|
|
Завантаження…
Посилання в новій задачі