cleaning code
This commit is contained in:
parent
01dccf5a20
commit
6a637fcf60
1 changed files with 4 additions and 4 deletions
|
@ -64,10 +64,10 @@ class Render {
|
||||||
*/
|
*/
|
||||||
const fond = new Image();
|
const fond = new Image();
|
||||||
fond.src = this.mapsrc;
|
fond.src = this.mapsrc;
|
||||||
mapWidth = fond.width
|
mapWidth = fond.width;
|
||||||
mapHeith = fond.height
|
mapHeith = fond.height;
|
||||||
this.ctx.canvas.width = mapWidth
|
this.ctx.canvas.width = mapWidth;
|
||||||
this.ctx.canvas.height = mapHeith
|
this.ctx.canvas.height = mapHeith;
|
||||||
this.ctx.drawImage(fond, 0, 0, mapWidth, mapHeith);
|
this.ctx.drawImage(fond, 0, 0, mapWidth, mapHeith);
|
||||||
this.players.forEach((player) => {
|
this.players.forEach((player) => {
|
||||||
this.RenderPlayer(player);
|
this.RenderPlayer(player);
|
||||||
|
|
Loading…
Reference in a new issue