EasyManuals Logo

Arduino Pro Mini User Manual

Arduino Pro Mini
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #132 background imageLoading...
Page #132 background image
Figure 22The game controller communicates with a Chrome app.
Creating the Game
At this point you know enough about Chrome apps and controlling a motion-
sensing game controller to create an entertaining video game. Writing a video
game isnt directly related to programming the Arduino. Still, itll show you
some techniques you can use in other projects, and itll give you a much
better understanding of how the integration of hardware and software works.
Before you dive into the code, download it from the books website
2
and play
the game. Doing so will help you find your way through the code much easier.
When programming a browser game, you usually start with its HTML code.
In our case it looks like this:
BrowserGame/Arduinoid/main.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="css/arduinoid.css"/>
<title>Arduinoid</title>
2.
http://www.pragprog.com/titles/msard2
Chapter 7. Writing a Game for the Motion-Sensing Game Controller 114
report erratum discuss
www.it-ebooks.info

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Arduino Pro Mini and is the answer not in the manual?

Arduino Pro Mini Specifications

General IconGeneral
BrandArduino
ModelPro Mini
CategoryMotherboard
LanguageEnglish

Related product manuals