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 b7c0077 commit d583cca
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions media/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ var cooldown = false;
var hearts = 3;
var lastHeartScore = 0;

var maxSpeed = 18;
var maxSpeed_2 = 20;
var maxSpeed_3 = 22;
var maxSpeed = 16;
var maxSpeed_2 = 18;


for (var i = 0; i < carCount; i++) {
Expand Down Expand Up @@ -198,10 +197,6 @@ function update() {
dbgy += 0.05;
obsSpeed += 0.05;
}
if (playerScore > 350 && dbgy < maxSpeed_3) {
dbgy += 0.05;
obsSpeed += 0.05;
}

// Obstacles and score and level
document.getElementById('score').innerHTML = "Score: " + parseInt(playerScore) + " | Level: " + level;
Expand Down

0 comments on commit d583cca

Please sign in to comment.