←back to thread

1345 points philosopher1234 | 1 comments | | HN request time: 0.212s | 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 #
rollcat ◴[] No.34631651[source]
Say what you like about Apple, but having all these functions on the Cmd key instead is not just more logical, it's actually sane (doubly so for the terminal). I think MS has missed an enormous opportunity when they introduced the Win key; and X11 desktops, toolkits, and apps imitated the more familiar (rather than the better) solutions.
replies(7): >>34631818 #>>34631866 #>>34631915 #>>34632148 #>>34632317 #>>34634369 #>>34635100 #
arcanemachiner ◴[] No.34631818[source]
I will concede that for once, Apple's insane keyboard mappings actually work in their favor.

But I still won't get them any credit, since it is purely a coincidence that their mappings happened not to mess with this one browser game.

replies(6): >>34631874 #>>34631965 #>>34633597 #>>34634199 #>>34634480 #>>34635180 #
1. LordDragonfang ◴[] No.34634199[source]
The control key was designed with the intent of subtracting 0x60 (or 0x40 if you assume the base state is caps) from a character code to send a control code. It's not some coincidence that "ctrl-c" sends an interrupt on the console, if you take a look at any ascii table[1] you can see it was designed that way.

Repurposing that key to instead perform unrelated arbitrary commands is the insane move, and it only seems normal because you grew up using Windows and never thought to question it.

Apple's mappings make much more sense, especially with both OSs having a Meta key.

[1] https://www.asciitable.com/