added coler

This commit is contained in:
2026-02-04 19:23:24 +00:00
parent 5971ba30be
commit ecaf94fef5
+2 -2
View File
@@ -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);
} }