ajout des pseudos
This commit is contained in:
parent
66ad4b5b80
commit
d5b3ca0c69
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ class Render {
|
|||
this.ctx.rotate(player.angle);
|
||||
this.ctx.drawImage(img, -playerSize / 2, -playerSize / 2, playerSize, playerSize);
|
||||
this.ctx.restore();
|
||||
this.ctx.fillStyle="#FF0000";
|
||||
this.ctx.font="10pt arial";
|
||||
this.ctx.fillText(player.name,player.x-player.name.length*10/3,player.y-playerSize/1.8);
|
||||
}
|
||||
|
||||
ReloadAff() {
|
||||
|
|
Loading…
Reference in a new issue