Workshop › Rhythm Lanes › Step 23 of 35
A note that slips past the line without being hit is a Miss. Each frame, any note not hit and more than GOOD
frames late is marked, counted and announced in red.
```js
frame += 1
// A note that has gone past the window without being hit is a miss.
for (const n of notes) {
if (!n.hit && frame - n.time > GOOD) {
n.hit = true
judged.miss += 1
judge('Miss', '#f87171')
}
}
```frame - n.time is how many frames late the note is. At exactly GOOD frames late it can still be hit, so it is
only a miss one frame after that (>, not >=).hit = true means it is counted once and no longer drawn.In update, under frame += 1, write the comment and the loop.
Skills: Game states, Loops