Creating Your Own Video Game

TVout and our Nunchuk library are all we need to write entertaining games for our video game console. In this section we’ll build Pragduino, a simple game that demonstrates most of the skills you need to write more complex games.

images/pragduino.png

The player controls crosshairs using the Nunchuk’s analog stick and has to shoot circles using the Nunchuk’s Z button. The circles appear at random positions and stay there for 1.5 seconds. A status bar at the top of the screen shows how much time is left until the current circle disappears. The game ends after ten rounds, and the game’s goal is to hit as many circles as possible.

Before ...

Get Arduino: A Quick-Start Guide, 2nd Edition 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.