Skip to content

Commit

Permalink
Reduced the ball speed in the Pong game to make it a little slower.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovable-dev[bot] committed Jun 27, 2024
1 parent 920e8c0 commit 0b4b85f
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 @@ -13,7 +13,7 @@ const Index = () => {
const paddleHeight = 100;
const ballSize = 10;
const playerSpeed = 6;
const ballSpeed = 4;
const ballSpeed = 2;

let player1Y = canvas.height / 2 - paddleHeight / 2;
let player2Y = canvas.height / 2 - paddleHeight / 2;
Expand Down

0 comments on commit 0b4b85f

Please sign in to comment.