What's a suprise is, as an adult, i still feel the same way. Sure, I've larger feet now and I'm perhaps a shade less precise, but unless it's approaching total floor covering there would usually be routes. Some commenters below implied that people might enjoy the pain but that doesn't seem like it's the case: people really complain about this happening, but irrationally it doesn't seem to bother them enough to avoid it.
No idea what the solution is. Perhaps one could go all-in and make it even more dangerous: spread drawing pins on the floor too, it's sort of the nuclear option, but that would get attention, in turn resulting in less pain.
Thankfully it's not a problem i need to solve, but I'd love to hear if someone had a better idea (besides something like insisting kids clear it up, which is no fun!)