Am I the only one experiencing a game-breaking bug/behavior?
The D thrust gets stuck on if you press it once, and randomly the W comes on and gets stuck too. Also, after the first ship, every additional ship starts with W and D thrusts on, permanently.
This happens to me when I use the Internet Explorer.
My best guess is, that the problem is, that the game tries to use all the computing power available. The game does use the "setTimeout(Loop, 0)" trick to accomplish this. Usually there is no problem if the event queue is a queue. Then the setTimeout function is the last one in the queue and keypresses are handled first. If the events are handled differently, for example by using a stack, such games are in big trouble.
I had a similar issue with FF. IT looks like the canvas kept losing focus and FF was interpreting the letter keys as search terms sometimes. I believe when it looses focus with the keydown caused the sticking issue.
Comments (127) 36 threads
Show all comments
Showing thread 10 of 36
The D thrust gets stuck on if you press it once, and randomly the W comes on and gets stuck too.
Also, after the first ship, every additional ship starts with W and D thrusts on, permanently.
No issues in Chrome.