Skip to content

Commit

Permalink
Adjusted the powerup chance. Increased starting speed of ball
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldotwav committed Jan 8, 2024
1 parent 8136352 commit a2357ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const ball = {
y: 260,
width: 5,
height: 5,
speed: 1,
speed: 3,
dx: 0, // Ball x velocity
dy: 0 // Ball y velocity
};
Expand Down Expand Up @@ -262,7 +262,7 @@ function resetPaddle() {
/// GAME LOOP
/////////////////////////

const POWERUP_CHANCE = 0.4;
const POWERUP_CHANCE = 0.5;
const POWERUP_COOLDOWN = 3;

const WIDE_BAR_DURATION = 6;
Expand Down

0 comments on commit a2357ce

Please sign in to comment.