ajout des pseudos

This commit is contained in:
Baptiste 2023-12-05 15:32:07 +01:00
parent 66ad4b5b80
commit d5b3ca0c69

View file

@ -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() {