Skip to content

Commit

Permalink
3.7.0.1 (SONGv 3.7! 22/07/2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuayabR authored Jul 22, 2024
1 parent 4893973 commit 608bbdf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion BeatzGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ function startGame(index, versionPath, setIndex) {
console.log("Current song path:", currentSongPath);
console.log("Beatz.io loaded and playing. Have Fun!");

currentSong.addEventListener("ended", onSongEnd);
currentSong.addEventListener("ended", songEnd);

document.getElementById("nextButton").style.display = "inline";
document.getElementById("restartButton").style.display = "inline";
Expand Down Expand Up @@ -1840,6 +1840,10 @@ function startGame(index, versionPath, setIndex) {
};
}

function songEnd() {
endScreenDrawn = true;
}

// Score logic

// Function to save the score to localStorage
Expand Down
6 changes: 5 additions & 1 deletion BeatzGameTesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ function startGame(index, versionPath, setIndex) {
console.log("Current song path:", currentSongPath);
console.log("Beatz.io loaded and playing. Have Fun!");

currentSong.addEventListener("ended", onSongEnd);
currentSong.addEventListener("ended", songEnd);

document.getElementById("nextButton").style.display = "inline";
document.getElementById("restartButton").style.display = "inline";
Expand Down Expand Up @@ -1840,6 +1840,10 @@ function startGame(index, versionPath, setIndex) {
};
}

function songEnd() {
endScreenDrawn = true;
}

// Score logic

// Function to save the score to localStorage
Expand Down
3 changes: 2 additions & 1 deletion versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,5 @@ Reworked album cover logic!
- Fixed playing a new song making the fps displayed infinite and delta time to be 0.
- Fixed restarting a song version going back to the default version.
- Added missing songs from Eminem's The Death of Slim Shady (Coup de Grâce) album.
- Made a second JavaScript file for all of the setting's logic.
- Made a second JavaScript file for all of the setting's logic.
- Song end now no longer spams saveScore.

0 comments on commit 608bbdf

Please sign in to comment.