Good job =)
I'd capture onkeyup instead of onkeypress though. It turns crazy when you leave the key pressed!
A downloadable game for Windows, macOS, and Linux
A nibble is a half byte, four bits 0's or 1's, that's the game about, use 1 and 0 keys to repeat the blinked sequence. You can play with your eyes open or closed, a tone help both visually impaired players or not. Random sequences are generated over and over.
Done in Html + Jscript, no external files needed, just a canvas tag compatible browser, tested in FF 45.0.2
Colors can be changed by editing source code, just edit this lines:
this for black color
this one for white
Click download now to get access to the following files:
Log in with itch.io to leave a comment.
Good job =)
I see, well is different when you press a button and when you use the direction keys for example, in first case you press and you are done, but in second one you hold while are moving in the same direction, this generates several key strokes, and quickly the repeat fast key event and then the disaster! xP Mine fails also if you hold the key, really I never thought about, just worked but it's true it should work fine even in this situation.