Remix.run Logo
umutdev 4 days ago

level 47 cheat ``` // Keep track of already hit notes const hitNotesSet = new WeakSet();

// Define hit zone (adjust based on your game layout) const hitZoneY = window.innerHeight - 150; // ~150px from bottom const tolerance = 20; // allowed error in pixels

function hitNotes() { document.querySelectorAll('.note').forEach(note => { if (hitNotesSet.has(note)) return; // already triggered

    const rect = note.getBoundingClientRect();
    const noteY = rect.top;

    // Check if note is in hit zone
    if (Math.abs(noteY - hitZoneY) <= tolerance) {
      let arrow = note.innerText.trim();

      let keyMap = {
        '↑': 'ArrowUp',
        '↓': 'ArrowDown',
        '←': 'ArrowLeft',
        '→': 'ArrowRight'
      };

      let key = keyMap[arrow];
      if (key) {
        document.dispatchEvent(new KeyboardEvent('keydown', { key }));
        document.dispatchEvent(new KeyboardEvent('keyup', { key }));

        hitNotesSet.add(note); // mark as hit
      }
    }
  });
}

setInterval(hitNotes, 20); // check 50x per second ```

vultour 4 days ago | parent [-]

Why? I did it on the first try and have never played games like osu!, there seems to be quite a bit of tolerance for hitting the wrong keys.

mewpmewp2 4 days ago | parent [-]

I couldn't do it after 10+ tries... Maybe it would be easier if I remapped keys exactly to side by side.

tiagod 3 days ago | parent | next [-]

Yeah, I had to do this, the up and down were too hard.

jozvolskyef 4 days ago | parent | prev | next [-]

A simple way to "map" the keys to use both hands, two arrows each.

mewpmewp2 3 days ago | parent [-]

I tried going back and forth on this exact idea, but my brain somehow kept messing up portions of it still.

I started smashing left + up, instead of down + up when they came together.

Eventually I got through it with 89, but not sure how many turns and I don't remember the configuration, but something finally clicked.

SlackingOff123 4 days ago | parent | prev [-]

Yeah, I wish it accepted hjkl.

alexitorg 4 days ago | parent [-]

Man, I suck at rhythm games. I've played about 50 times and the best I've gotten in 84%.