Skip to content
Snippets Groups Projects
Commit 80e21c24 authored by ys678's avatar ys678
Browse files

Update gameClient.js

parent 9e5c7f5f
Branches EneryBooster
No related tags found
No related merge requests found
......@@ -100,6 +100,16 @@ let gameBoardHandler = (event) => {
);
ctx.fillStyle = "white";
}
if (board[i][j].type === 6) {
ctx.fillStyle = "green";
ctx.fillRect(
j * widthStep + 1,
i * heightStep + 1,
widthStep - 2,
heightStep - 2,
);
ctx.fillStyle = "white";
}
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment