16

AIR HOCKEY: A MULTITOUCH,MULTIPLAYER TABLET GAME

CHAPTER OUTLINE

A Trio of Topics

Multitouch Input for Devices

The Finite-State Machine

Physics Simulation with Box2D

The Game: Two-Player Air Hockey

The XFL File

The Classes

Main.as

Title.as

Rules.as

GameTouchController.as

Game.as

AirHockeyEngine.as

Ready to Build

Conclusion

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 versions 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 ...

Get Real-World Flash Game Development, 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.