umutdev
Re:I'm Not a Robot Game
on Saturday September 20, 2025 @07:09PM (#45318432)
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 ```
Re:Go is still not good
on Friday August 22, 2025 @02:53PM (#44988363)
go error handling bla bla shitpost
Re:Show HN: I built a Yahoo Messenger-inspired web chat app – pure nos...
on Friday April 11, 2025 @04:29PM (#43658181)
why not real MSN
Re:Show HN: macOS app that shows how full the urine tank on the ISS is
on Thursday December 19, 2024 @07:05PM (#42467073)
this kind of thing used to be made for touchbar