Skip to content

Commit

Permalink
nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyall-A committed Jul 13, 2024
1 parent e0e1198 commit eb63fa5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Game {
multiplierChange: 1000, // Double the multiplier every x points
maxAudio: 10, // Max amount of audios that can play at once
defaultScrollSpeed: 20,
sliderComboIncrementInterval: 100,
sliderComboIncrementInterval: 0, // TODO: its fucked
noteDirection: 1, // 1: DOWN, 2: UP
};

Expand Down Expand Up @@ -257,7 +257,7 @@ class Game {
note.height = Math.max(note.normalHeight, note.height - this.noteMoveAmount * deltaTime);
note.element.style.height = `${Math.round(note.height)}px`;
const date = Date.now();
if (date > note.holdStart + this.gameSettings.sliderComboIncrementInterval && (date - note.holdStart) % this.gameSettings.sliderComboIncrementInterval <= deltaTime) this.updateCombo();
if (date > note.holdStart + this.gameSettings.sliderComboIncrementInterval && (date - note.holdStart) % this.gameSettings.sliderComboIncrementInterval <= deltaTime) this.updateCombo(); // TODO: pretty inaccurate and broken
} else
if (this.getNoteDistance(lane, note, true) > this.pointRange) {
// Held too long
Expand Down Expand Up @@ -576,7 +576,6 @@ class Game {
this.badHits++;
this.health = Math.min(0, this.health - 1);
} else {
this.updateCombo();
this.health = Math.min(this.gameSettings.maxHealth, this.health + 1);
}

Expand Down

0 comments on commit eb63fa5

Please sign in to comment.