Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

9 years ago by Brushbender

I've followed a tutorial to get the gist of how the engine works and the result is on this link: http://doublethink.no/meteors/

It is a great experience so far.

My problem however is that I MUST click the window for the keyboard to work. Is there a way for the key to work without having to click the window?

9 years ago by Joncom

The default index.html that comes with Impact does not suffer from this problem. It seems like some of the JavaScript you have on your page may be stealing the focus. I would try adding/removing/playing with the contents of your HTML file. Two approaches come to mind:

1. Maybe start with the Impact index.html and start adding in your "extras", one by one. As you add things in, check if the issue has started to affect your game.

2. Or start with your current index.html, and start removing things (for now -- you can put them back later -- you use version control right?). Then as you remove things, check if the issue has been fixed.

Either way, at some point you'll stumble upon the change that is stealing the focus away from the canvas.
Page 1 of 1
« first « previous next › last »