3 ms·
I hate to say it, but javascript games will not be viable until browsers are willing to relinquish keyboard controls to user code. We need two things, ability t
by seanalltogether 16y ago
I hate to say it, but javascript games will not be viable until browsers are willing to relinquish keyboard controls to user code. We need two things, ability to enter full screen, and ability to take all controls, in a way that still protects the end user.
- angrycoder 16y agothat hasn't stopped flash games from being wildly successful.
- seanalltogether 16y agoflash is able to go fullscreen as well as request control of user input.
- phoboslab 16y agoMozilla has proposed a FullScreen API. It's also in the latest Webkit nightlies iirc. https://wiki.mozilla.org/Gecko:FullScreenAPI https://wiki.mozilla.org/Gecko:FullScreenAPI You can also prevent the default behavior for almost all keys already (Opera is still a bit reluctant in that regard).
- seanalltogether 16y agoFirefox also doesn't like giving exclusive arrow key controls or blocking find as you type.
- sitmack 16y agoIt can be done but it is a little bit of pain. There is a need here for a cross platform keyboard lib for js. Also Chromium goes full screen just fine. Don't actually see too big of an issue with either.
- ShardPhoenix 16y agoIsn't the whole point of HTML5 games is that they don't take the whole focus of the computer? Otherwise you may as well play a normal game.