Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Timing Bug #1

Open
MBailey019 opened this issue Oct 12, 2018 · 0 comments
Open

Event Timing Bug #1

MBailey019 opened this issue Oct 12, 2018 · 0 comments

Comments

@MBailey019
Copy link
Owner

MBailey019 commented Oct 12, 2018

Each click of a character button is potentially handled by multiple event-handlers. Each letter in the word binds a keydown event-listener to the window, which reports the press to the letter and the letter determines if it has been guessed. There is another keydown listener (also on the window) that simulates a click on the appropriate letter-indicator.

When a word is completed, it is quickly replaced, before the indicator can be notified of the event. By the time the indicator is notified that it should deactivate, the next word is in place and the indicators have all been reset for the new game. You start, then, with a letter seemingly already deactivated. The bug only occurs in the higher game-speeds, where the next word is loaded more quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant