Coyote time 2D
A short grace period after you run off a ledge where jumping still works, because players press jump a hair late and expect it to count.
Prompt line
Add coyote time: keep a timer that starts at 100 ms when the player leaves the ground and allow a normal jump while it is above 0; reset it to 0 the moment a jump starts so it can't double-jump.
Common mistake: Not clearing the timer when the jump starts, which quietly gives every player a free double jump.