Game Development Reference
In-Depth Information
16
AIR HOCKEY: A MULTITOUCH,
MULTIPLAYER TABLET GAME
CHAPTER OUTLINE
A Trio of Topics 374
Multitouch Input for Devices
374
The Finite-State Machine 375
Physics Simulation with Box2D 376
The Game: Two-Player Air Hockey
377
The XFL File
378
The Classes
378
Main.as 379
Title.as 380
Rules.as 381
GameTouchController.as
383
Game.as 387
AirHockeyEngine.as
397
Ready to Build
405
Conclusion
406
While the iPhone and iPad have been hogging the attention of
device users lately, Google
s Android platform has been the fastest
in terms of growth. This is because just about everything about the
platform is open source
'
people can feasibly make their own ver-
sions of the Android OS customized for their needs. This also
means all the basic tools to develop Android applications are free as
well, and there are few to no restrictions about putting applications
on phones or tablets. This also means that devices made by manu-
facturerscanhaveaprettywidevarianceinspecifications(screen
size, processor and video speed, memory, storage, media devices
like cameras, and keyboards
virtual and slideout), leading to hard-
ware fragmentation. On top of that, in many cases the carriers of a
handset (such as AT
T, Sprint, Verizon, and so on) control when
users are allowed to upgrade to a new version of the OS. Google
releases new updates a couple of times a year, so devices can
quickly fall behind, leading to software fragmentation. These types
of fragmentation are arguably the biggest criticisms of the platform,
&
 
 
Search Nedrilad ::




Custom Search