mrmoses / lyl

Lose Your Lemmings
1 stars 3 forks source link

Input overflow #1

Open wjaspers opened 11 years ago

wjaspers commented 11 years ago

If the canvas loses focus (e.g. the user clicks the addressbar while they had a key event still firing and click back inside the canvas)... the input event never stops. The result seems to be that the ball of lemmings is hurled and glued to one wall of the stage.

ashblue commented 11 years ago

Weird, wondering if some of the odd physics under the hood are looking for a change of direction instead of having the speed consistently deteriorate. When there is no momentum in a direction.