CHAPTER 10

image

Playing Around with the Gamepad API

Andrzej Mazur, HTML5 Games Developer, Founder, Enclave Games

There is a great focus on making HTML5 games for mobile devices, which is good, of course, but core progamers are usually visualized as having a gamepad in their hands. So why not use it and deliver the full experience of a game using the Full Screen, Mouse Lock, and Gamepad APIs? The last API provides the ability to use a console’s controller to play HTML5 games—how cool is that? With the W3C specification presently being written, we will have an API that is easy to implement, does not require any plug-ins to run in your browser, and is ...

Get HTML5 Game Development Insights now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.