January 2015
Beginner
324 pages
7h 42m
English
To test our game controller, we’ll program a simple Breakout[66] clone in JavaScript. The player’s goal is to destroy all bricks in the upper half of the screen using a ball. It’ll look something like the following figure.

To control the ball with the paddle at the bottom of the screen, you can tilt the controller around the x-axis to move the paddle horizontally. The game runs in a web browser, and it communicates with the Arduino via a serial ...
Read now
Unlock full access