←back to thread

1345 points philosopher1234 | 1 comments | | HN request time: 0s | source
Show context
bogwog ◴[] No.34629739[source]
Played this for a bit but ran into some trouble with the key mappings. CTRL to crouch means that I can't really press anything else without causing firefox to ruin the game.

* CTRL+R (reload) causes the page to refresh

* CTRL+W (walk forward) attempts to close the current tab

* CTRL+S (walk backward) opens a dialog to save the current page

* CTRL+D (walk right) bookmarks the current page

Luckily firefox shows a confirmation dialog before refresh or closing the tab, but that causes the game to freeze until you dismiss it.

Also sound didn't work at all

replies(7): >>34629849 #>>34629850 #>>34630456 #>>34631093 #>>34631578 #>>34631651 #>>34632122 #
1. wbobeirne ◴[] No.34631578[source]
If you install the page as a PWA then it will be able to prevent those shortcuts https://developer.mozilla.org/en-US/docs/Web/Progressive_web...