4 ms·
I think this is the first time I've ever seen an online game correctly tell me to use WARS keys for movement. Big props for handling non-qwerty layouts. Great
by bhaney 2y ago
I think this is the first time I've ever seen an online game correctly tell me to use WARS keys for movement. Big props for handling non-qwerty layouts.
Great job optimizing too. Runs totally smooth on my 2012 macbook and its decrepit HD 4000 iGPU, which is no small feat for web-games these days.
- guigui 2y agoThank you! As an azerty user, I know the pain of using websites that are only designed for US keyboards. If anyone's wondering, the getLayoutMap method from the Keyboard API is what we're using to handle international keyboard layouts. https://developer.mozilla.org/en-US/docs/Web/API/Keyboard/getLayoutMap https://developer.mozilla.org/en-US/docs/Web/API/Keyboard/ge...
- swyx 2y agodo you have a technical writeup somewhere with tips and tricks like these?