Live data from Hacker News

MineCraftWebGL

danielribeiro.github.com

31–40 of 59 posts

Re: MineCraftWebGL

#31

If only there were an API for mouse capturing. Is there any reason why it couldn't work if it were implemented like full screen mode (displaying a message telling the user to press escape to reclaim the mouse)? Edit: Actually it looks like this is being worked on after all – http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.htm...

I just implemented that in a fork: https://github.com/danielribeiro/WebGLCraft/ Only works in Chrome for now, if you enable it in chrome://flags. You don't even need to be in full-screen mode, at least on the latest version. Pull request is here: https://github.com/danielribeiro/WebGLCraft/pull/1

Oops. That first link should be https://github.com/ricardobeat/WebGLCraft/

Page at http://ricardobeat.github.com/WebGLCraft/, press C to enable mouse lock. Aiming doesn't work very well...

Re: MineCraftWebGL

#32
post #28
post #22

Earlier quoted context omitted.

I apologize, the context made me think along the lines of Dvorak. EDIT: Even so, most OSes now make it relatively easy to switch layouts based on country, so I feel as though my point still stands.

"most OSes now make it relatively easy to switch layouts" The problem is that the physical layout is unchanged, so you need to memorize the keys...

If you have to look at your keyboard to write things that is unefficient anyway? I never look at my keyboard unless I have to type some weird character that is never normally used.

Re: MineCraftWebGL

#33
post #32
post #28

Earlier quoted context omitted.

"most OSes now make it relatively easy to switch layouts" The problem is that the physical layout is unchanged, so you need to memorize the keys...

If you have to look at your keyboard to write things that is unefficient anyway? I never look at my keyboard unless I have to type some weird character that is never normally used.

That's an extremely simplistic look at the problem. The issue isn't looking at the keyboard, it's the extra mental effort of doing the keymapping every time you run into a new application which has stupid defaults that don't take alternative layouts into account.

Re: MineCraftWebGL

#35

It's tiring to see that WASD is always used to control movement, regardless of keyboard layout. On a French keyboard, this is how WASD is laid out: http://en.wikipedia.org/wiki/File:KB_France.svg Needless to say that it is highly impractical… Why not bind the arrow keys?

The arrow keys are usually at the right of the keyboard, next to the mouse, which makes playing with two hands awkward. You also need to move the hand on the keyboard to push pretty much any other key, which makes it difficult to do other actions (reload, open inventory, sprint, etc.)

Of course the better solution is to give the player the choice...

Re: MineCraftWebGL

#36
post #35

It's tiring to see that WASD is always used to control movement, regardless of keyboard layout. On a French keyboard, this is how WASD is laid out: http://en.wikipedia.org/wiki/File:KB_France.svg Needless to say that it is highly impractical… Why not bind the arrow keys?

The arrow keys are usually at the right of the keyboard, next to the mouse, which makes playing with two hands awkward. You also need to move the hand on the keyboard to push pretty much any other key, which makes it difficult to do other actions (reload, open inventory, sprint, etc.) Of course the better solution is to give the player the choice...

> You also need to move the hand on the keyboard to push pretty much any other key

- cost of binding arrow keys: ~0

- benefit to non-wasd compatible layouts: ∞

(did you know that my keyboard can actually move to where arrow keys are comfortably used, or that left-handed and right-handed-who-use-their-mouse-on-the-left-because-it-makes-sense-with-a-numpad-and-makes-RSI-bearable people exist? ;-)

Re: MineCraftWebGL

#37
post #35

It's tiring to see that WASD is always used to control movement, regardless of keyboard layout. On a French keyboard, this is how WASD is laid out: http://en.wikipedia.org/wiki/File:KB_France.svg Needless to say that it is highly impractical… Why not bind the arrow keys?

The arrow keys are usually at the right of the keyboard, next to the mouse, which makes playing with two hands awkward. You also need to move the hand on the keyboard to push pretty much any other key, which makes it difficult to do other actions (reload, open inventory, sprint, etc.) Of course the better solution is to give the player the choice...

> The arrow keys are usually at the right of the keyboard, next to the mouse

Usually yes, but not if you're using your left hand for the mouse as I've recently switched to do. At a bare minimum both WASD and arrow keys should be enabled.

But yes, reconfigurability is by far the best solution.

Re: MineCraftWebGL

#38
post #6

If only there were an API for mouse capturing. Is there any reason why it couldn't work if it were implemented like full screen mode (displaying a message telling the user to press escape to reclaim the mouse)? Edit: Actually it looks like this is being worked on after all – http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.htm...

This exists in Firefox as of 14, currently in Aurora, so this will be in a stable release in a few weeks. It also exists in recent Chrome versions, however it seems to be disabled by default for some reason, but you can enable it in the flags menu. No reason why this cool site can't use it on those browsers, there are lots of demos on the web that do. Mouse lock is very important.

> It also exists in recent Chrome versions, however it seems to be disabled by default for some reason

It's enabled at least for the Chrome Store/NaCl apps, since it did that to me for Bastion and/or From Dust.

Re: MineCraftWebGL

#39
post #20

It makes me sad when cool things like this don't support keyboard layouts other than QWERTY

Someone who goes out of their way to learn other keyboard layouts should probably go the extra step in having a way to map keys for stuff like this.

[deleted]

Re: MineCraftWebGL

#40
post #20

It makes me sad when cool things like this don't support keyboard layouts other than QWERTY

Someone who goes out of their way to learn other keyboard layouts should probably go the extra step in having a way to map keys for stuff like this.

On azerty, WASD ens up like your qwerty's ZQSD. It's mind-bending to try to play this way, way worse than HJKL.
Post reply on HN