Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyall-A committed Jun 27, 2024
1 parent 5da147f commit b5816e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
11 changes: 5 additions & 6 deletions Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class Game {
this.notesToSpawn.shift();

// broken hax
// setTimeout(() => {
// this.onKeyPress(noteToSpawn[0] - 1);
// setTimeout(() => this.onKeyRelease(noteToSpawn[0] - 1), 50);
// }, this.getMsToKey());
setTimeout(() => {
this.onKeyPress(noteToSpawn[0] - 1);
setTimeout(() => this.onKeyRelease(noteToSpawn[0] - 1), 50);
}, this.getMsToKey() - 20);
}
}

Expand Down Expand Up @@ -160,8 +160,7 @@ class Game {
lane.elements.notes.appendChild(noteElement);
lane.notesSpawned++;
lane.notes.push({ top, height: noteElement.offsetHeight, element: noteElement, id: lane.notesSpawned, slider: sliderHeight ? true : false });
if (sliderHeight) noteElement.innerHTML = "<h1 style=\"position: absolute;\">no slider implementation :P</h1>"
// TODO: slider height is in beats, gota calcualte somehow
if (sliderHeight) noteElement.innerHTML = "<h1 style=\"position: absolute;\">no slider implementation :P</h1>" // TODO
noteElement.style.height = sliderHeight ? `${noteElement.offsetHeight + (this.beatToMs(sliderHeight) * this.noteMoveAmount)}px` : "auto";
}

Expand Down
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
const skin = await getSkinData("skins/default");
loadDefaultSkin(skin);

// const mapName = "Kobaryo - Endless Adventure - 208693";
// const mapPath = `maps\\Quaver - ${mapName}`;
const mapPath = `maps\\Quaver - Ludicin - Everlasting Eternity - 162225`;
const mapPath = `maps\\Quaver - Kobaryo - Cartoon Candy - 211237`;
// const mapPath = `maps\\Quaver - Kobaryo - Endless Adventure - 208693`;
const levelIndex = 0;

const map = await getMapData(mapPath);
Expand All @@ -33,7 +32,7 @@
const user = {
settings: {
scrollSpeed: 20,
masterVolume: 0.5,
masterVolume: 5,
musicVolume: 100,
// musicVolume: 10,
sfxVolume: 100,
Expand Down

0 comments on commit b5816e5

Please sign in to comment.