Remix.run Logo
bhaney 3 days 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 3 days ago | parent [-]

Thank 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/ge...

swyx 3 days ago | parent [-]

do you have a technical writeup somewhere with tips and tricks like these?