You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
334 B
JavaScript
20 lines
334 B
JavaScript
function drawGameBoard(){
|
|
|
|
// Reset board
|
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
|
|
drawPlayerNames();
|
|
|
|
}
|
|
|
|
function drawPlayerNames(){
|
|
|
|
// Player Name
|
|
//ctx.fillText(playerName, 50, canvas.height - 50);
|
|
|
|
// Opponent Name
|
|
//ctx.fillText(opponentName, canvas.width - (ctx.measureText(opponentName).width + 50), 50);
|
|
|
|
}
|
|
|