Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NLlemain authored Oct 25, 2024
1 parent 577d89c commit b7c0077
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions media/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ var cooldown = false;
var hearts = 3;
var lastHeartScore = 0;

var maxSpeed = 20;
var maxSpeed_2 = 25;
var maxSpeed_3 = 30;
var maxSpeed = 18;
var maxSpeed_2 = 20;
var maxSpeed_3 = 22;


for (var i = 0; i < carCount; i++) {
Expand Down Expand Up @@ -183,7 +183,7 @@ function update() {
};
}

if (Math.floor(playerScore) % 200 === 0 && Math.floor(playerScore) !== lastHeartScore && hearts < 3) {
if (Math.floor(playerScore) % 450 === 0 && Math.floor(playerScore) !== lastHeartScore && hearts < 3) {
hearts++;
lastHeartScore = Math.floor(playerScore);
newHP();
Expand Down

0 comments on commit b7c0077

Please sign in to comment.