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