Triang3l / WebQuake

HTML5/WebGL source port of Quake
626 stars 100 forks source link

Jumping is broken, you are kept on the same direction even when turning in flight #4

Closed SpiritQuaddicted closed 11 years ago

SpiritQuaddicted commented 11 years ago

In Quake you can turn in mid-air. Here this is not possible. If I jump and hold a turning key (or turn the mouse view), I will still fly into the "first" direction. This is a bug. In Quake I would have turned the jump's direction in the direction of the turn.

Triang3l commented 11 years ago

You're pressing too many buttons at the same time. This is JavaScript limitation, not WebQuake bug.

LiamKarlMitchell commented 5 years ago

Would this help to detect multiple keys pressed at once?

Store the events in an array by key and sample it frequently.

https://stackoverflow.com/questions/5203407/how-to-detect-if-multiple-keys-are-pressed-at-once-using-javascript