Hacker News new | past | comments | ask | show | jobs | submit login

You may want to use the up arrow to jump. Using X for jumping and C for shooting is a bit confusing.



That's interesting. I actually found having the jump and shoot actions over on the left hand quite intuitive. I'm now wondering whether left/right handedness or some other physical factors are involved in this...


Just make UP work in addition to X. This way users with built in reflexes won't feel punished.

Also, make space work for jumping too. I hit space a few times causing me to skip down on the page.

You don't need to advertise these additional key bindings, but since they are very common in other games a significant portion of players will automatically use them.

Other than that, very well done!


thx, updates made to the game! Key UP and Space now makes you jump.


X and C are also not in convenient places for Dvorak users, and I imagine for some other international keyboard layouts.


(Dvorak user here.) I've played many Flash games in which the keys were WASD, but they actually worked the same even if I didn't switch the layout back to Qwerty. And then I've played games in which it did matter which layout I used. I suspect there's one set of functions that receives keypresses, and another that looks at more raw device input. Perhaps there is a way to do the same thing here?

That wouldn't work with a physical Dvorak keyboard, though (as opposed to my Qwerty keyboard, with the input layout on my operating system set to Dvorak). Do you have one, out of curiosity? (And, hmm, you could make WASD--or X and C here--work as desired on a real Dvorak keyboard by making it handle keypresses rather than device input and then setting the layout to Qwerty.)


what keys do you suggest for Dvorak? let me know..


If you use keyCode instead of charCode I think you'll get the same result on every keyboard layout, but of course if you tell people to use C, it means the key where C is on a US keyboard, not really the key where a C is printed. I believe Dvorak users are conscious enough to understand that though.


Arrow keys, space, control, shift etc. are all normal, but I guess how capturable those are from JS varies. Making them configurable?

Qwerty X maps to Dvorak Q; Qwerty C maps to Dvorak J. That is, listening to Q and J when the user is using Dvorak, as X and C on a Qwerty keyboard.


its pretty capturable. Ok the idea to configure keys make a lot of sense!


I would have made space shoot, too, incidentally (arrows + space should be the same for just about every keyboard out there), but configuration itself is a great idea.

I also wish that the length of time you held down the jump key controlled the height of your jump rather (up to a maximum, obviously), rather than one-size-fits-all jumps, but that's minor.

Play an old NES game that used that system like Super Mario Bros. (any of them) then play your game to see how much more in control you feel.


You should allow the user to customize the keyboard, I prefer 'awsd' for movement and 0 and . as nintendo's 'A' and 'B' buttons. It maps better in my brain.


I didn't find immediately that the C was to jump. The keys should appear in the beginning.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: