added coler
This commit is contained in:
@@ -34,12 +34,12 @@ let playerScore = 0;
|
||||
let computerScore = 0;
|
||||
|
||||
function drawPaddle(paddle) {
|
||||
ctx.fillStyle = '#fff';
|
||||
ctx.fillStyle = '#1100ff';
|
||||
ctx.fillRect(paddle.x, paddle.y, paddle.width, paddle.height);
|
||||
}
|
||||
|
||||
function drawBall() {
|
||||
ctx.fillStyle = '#fff';
|
||||
ctx.fillStyle = '#1aff00';
|
||||
ctx.fillRect(ball.x, ball.y, ball.size, ball.size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user