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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.