cleaning code
This commit is contained in:
부모
01dccf5a20
커밋
6a637fcf60
1개의 변경된 파일과 4개의 추가작업 그리고 4개의 파일을 삭제
|
@ -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);
|
||||||
|
|
불러오는 중…
Reference in a new issue