cleaning code
Tento commit je obsažen v:
rodič
01dccf5a20
revize
6a637fcf60
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
|
|
@ -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);
|
||||
|
|
|
|||
Načítání…
Odkázat v novém problému