Skip to content
Snippets Groups Projects
Commit 542dcc26 authored by zm343's avatar zm343
Browse files

Game Border Code

parent 77ba2d8e
Branches
No related tags found
1 merge request!138 deadplayers
......@@ -82,6 +82,16 @@ let gameBoardHandler = (event) => {
);
ctx.fillStyle = "white";
}
if (board[i][j].type === 5) {
ctx.fillStyle = "black";
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