cleaning code

This commit is contained in:
Killian Marty 2023-12-06 19:51:25 +01:00
parent 01dccf5a20
commit 6a637fcf60

View file

@ -64,10 +64,10 @@ class Render {
*/
const fond = new Image();
fond.src = this.mapsrc;
mapWidth = fond.width
mapHeith = fond.height
this.ctx.canvas.width = mapWidth
this.ctx.canvas.height = mapHeith
mapWidth = fond.width;
mapHeith = fond.height;
this.ctx.canvas.width = mapWidth;
this.ctx.canvas.height = mapHeith;
this.ctx.drawImage(fond, 0, 0, mapWidth, mapHeith);
this.players.forEach((player) => {
this.RenderPlayer(player);