O'Reilly logo

Real-World Flash Game Development, 2nd Edition by Christopher Griffith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required