Skip to content

Commit

Permalink
Changed the background color of the 2-player Pong game from white to …
Browse files Browse the repository at this point in the history
…black.
  • Loading branch information
lovable-dev[bot] committed Jun 27, 2024
1 parent 0b4b85f commit 3694a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Index = () => {
};

const draw = () => {
drawRect(0, 0, canvas.width, canvas.height, "#2e026d"); // Background
drawRect(0, 0, canvas.width, canvas.height, "#000000"); // Background
drawNet();
drawRect(0, player1Y, paddleWidth, paddleHeight, "#ff00ff"); // Player 1
drawRect(canvas.width - paddleWidth, player2Y, paddleWidth, paddleHeight, "#00ffff"); // Player 2
Expand Down

0 comments on commit 3694a01

Please sign in to comment.