Conversation
We might want to use WASD for right-handed players as this game also requires control of the mouse. Left handed players would probably still want to use the arrow keys:
|
@willurd: thanks for the suggestion, I've added WASD and "space" for attack, as well as several other hotkeys for other parts of the interface |
Nice! |
… if you were hovering over a colliding tile
Hotkeys still seem to be active while typing in chat box, which causes movement as well as help, achievement windows, etc. to open while typing a message. I'd suggest deactivating these hotkeys while the chat window is open. :-) |
This was really needed, nice. |
@Keylan Would the best way to proceed with that be offer an entirely different switch statement based on if($('#chatbox').hasClass('active'))... ? |
@joequery I don't think an entirely different switch case is necessary. Can probably just edit the if statement before it to: considering the handler for the enter key is before the if statement. |
@Keylan Ah, good point, I didn't realize that all the keys relate to out of chat functionality. |
WASD does not suit any keyboards, think about other kb layouts. |
@damajor Do you mean that it doesn't suit all keyboard layouts? |
Ever heard of azerty keyboards. If not. Google it. And view the pictures. And look at the places of the keys. It will make you gasp ;p |
@namanix I'm sure most programmers are aware that non-qwerty keyboard layouts exist. Short of providing some mechanism of configuring key bindings (which is possibly something we might want to look into), I'm unsure how we might go about supporting all of them. |
@willurd : you cannot use WASD on some kb layouts because it has no meaning due to the keys location. |
@damajor How would you get around that? |
Honestly I didnt dig into JS features so I can only propose 2 ways to work around this issue:
or
|
@damajor Yes, but why do that? Why complicate the UI by adding an additional menu with configuration options that 95% of the users will never touch? In this case, I think simplicity is more important than configurability. Whoever doesn't like the keyboard commands can just use their mouse. I think azerty keyboard users will actually be glad BrowserQuest provides mouse support. |
@tech-no-crat Complicated UI, yes that is what we are debating here. I just think that when a feature is implemented it has to be done the right way and in a way to be portable and available for everyone. Making a feature and saying to someone or a bunch of people "no you can't use it because you do not live there or there and/or does not own such kind of peripheral" is just too easy. I wont argue on you arguments that says that azerty people should be happy to have their mouse to be able to play the game, I am just sick of that.... |
You can also use arrow keys. Also, you can always run your own server and change the keys setup in the
|
Configurability and simplicity do depend on each other.
Sadly, that's practically impossible. There are target groups for every feature. Mobile phones and tablets won't get this feature no matter what. Using a mobile device is their choice and so is using a specific keyboard. Non-QWERTY keyboards are very rare and the users who choose them are probably not using them for gaming anyway. And if they are, as @sgricci said, they can still use the arrows and the mouse. Don't forget that this feature is completely optional. Plus this is an open-source project, go ahead and fork it if you insist. I like this pull request as it is. Anyway, this isn't really worth debating. |
All I can say is I literally laughed out loud. I think that's the first Well done sir!
|
Also, @xav would it help if I added numpad support?
|
@sgricci : I already proposed some kind of workaround, you are of course free to decide which one (or none) to implement. Well anyway I wont participate to this issue anymore due to the exceptional level of unnecessary and not constructive remarks contained... BTW Good luck. @tech-no-crat : I am really sad to say that but you seem to be a so short minded guy... |
As long as i can use WASD for movement i will be happy, keep up the good work! |
Incremental improvements. +1 for qwerty support, thanks for the patch! |
Thanks for taking a look at the source code for BrowserQuest! BrowserQuest was developed by Little Workshop on behalf of Mozilla to showcase how the Web is the ultimate cross platform for games. Mozilla does not currently have the resources to maintain BrowserQuest, but you should check out some of these amazing community forks instead! Feel free to add your fork to the wiki. English
Korean
Android
Windows Phone
Erlang based
C++ based
Related
No longer actively developedFrench
|
Added ability to move around the map using arrow keys.