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

Cool, I guess. No instructions what-so-ever. Can we get some documentation on keys to use?



It appears to be Chrome only which might explain your problem with controls...

Edit: Yes, I did only test in Firefox and Chrome. According to the comments below, it appears to work for modern browsers except Firefox.


Man, I can understand people writing Firefox-hating demos if they're trying to show off some feature that recently landed in WebKit, I can almost understand it if they just did a weekend-hack and couldn't be bothered testing in any browsers other than their own.

I can't understand this - in 2013, how on earth do you break mouse events in JavaScript? We've had events like onmousedown working reliably across browser implementations for a decade or more, what on earth is going on?


The click handler is registered on the canvas and it checks e.offsetX. On Firefox, some people use e.layerX, but it's not exactly the same thing [0]. Someone posted a useful polyfill on JQuery's bugtracker [1].

Firefox should just support offsetX as well, but they don't, for whatever reason.

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=122665#c3

[1] http://bugs.jquery.com/ticket/8523#comment:16


Works in IE10. Why do you say Chrome only?


Maybe he just tried Firefox and Chrome like me?


Works fine in Safari.


Well, click left and use 1-9 for drinking potions.

Nothing else is implemented - and that much is probably obvious for people who played a hack'n slay before.

But thinking about it, it is interesting how games explain their shortcuts in the interface.


This is Hacker News, hit F12!


By the gods... :)




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

Search: