Compare commits
2 commits
60db2626aa
...
47ac036995
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47ac036995 | ||
|
|
d5b3ca0c69 |
1 changed files with 3 additions and 0 deletions
|
|
@ -32,6 +32,9 @@ class Render {
|
||||||
this.ctx.rotate(player.angle);
|
this.ctx.rotate(player.angle);
|
||||||
this.ctx.drawImage(img, -playerSize / 2, -playerSize / 2, playerSize, playerSize);
|
this.ctx.drawImage(img, -playerSize / 2, -playerSize / 2, playerSize, playerSize);
|
||||||
this.ctx.restore();
|
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() {
|
ReloadAff() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue