flypup / duel-of-the-devs

Duel of the Devs Web Game. Continuation of GitHub Game Off 2012 entry.
http://minimonks.com
2 stars 1 forks source link

Player continues to walk and punch after un-pausing game #23

Closed robwalch closed 11 years ago

robwalch commented 11 years ago

If the game is paused because the browser looses focus, keyup events will not be received and input can fall out of sync.

Fix: Clear input on pause.