© Indira Knight 2018
Indira KnightConnecting Arduino to the Webhttps://doi.org/10.1007/978-1-4842-3480-8_10

10. Creating a Game Controller

Indira Knight1 
(1)
London, UK
 

With animation you can create anything you can think of: real or the surreal, simple or complex. It can tell a story or be completely abstract, or anywhere in between. When HTML5 was released it contained a canvas element that can be used for 2D and 3D animation.

In this chapter you will be creating a game, with a Joystick attached to an Arduino, which is used as the game controller. The 3D graphics in this chapter are created and manipulated using a JavaScript library called Three.js, and data from an Arduino is used to manipulate the graphics.

Animation

The smoothness of an animation ...

Get Connecting Arduino to the Web: Front End Development Using JavaScript 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.