Skip to Content
iPhone Game Development
book

iPhone Game Development

by Paul Zirkle, Joe Hogue
October 2009
Beginner
260 pages
7h 23m
English
O'Reilly Media, Inc.
Content preview from iPhone Game Development

Third-Party Code

By now, it should be painfully apparent how much hard work and expertise go into making even small games. It’s almost overwhelming, but fear not! You don’t have to reinvent the wheel; no matter what type of game you are creating, reusable bodies of code are available that can supplement many parts of your game engine. They come in the form of libraries, middleware, and even fully fledged open source games.

Libraries

The iPhone SDK makes available many low-level Apple APIs (such as Core Graphics and Core Audio) and mid-level APIs (such as NSUserDefaults, NSImage, NSSound, and NSNetService). But you are not limited to these alone; many other libraries are available, and some even come with the SDK (such as OpenGL and OpenAL).

Libraries exist to help you with sound, networking, and many other tasks that you might find too low level.

Perhaps you want to store and organize large amounts of data; SQLite provides database functionality on the iPhone. Most likely you don’t want to write volumes of linear algebra code for your 3D physics; that’s OK—Newton, Open Dynamics Engine, and Bullet have beat you to the punch. For a really cool 2D rigid body physics library, you should check out Box2D.

The iPhone is a relatively new platform and new libraries are still being made available. Fortunately, the iPhone shares a lot of code with the OS X platform, so many libraries that work for the Mac can be used for the iPhone with a little tweaking.

Middleware

If your goal is simply to make ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Professional XNA™ Programming: Building Games for Xbox 360™ and Windows® with XNA Game Studio 2.0, Second Edition

Professional XNA™ Programming: Building Games for Xbox 360™ and Windows® with XNA Game Studio 2.0, Second Edition

Benjamin Nitschke
Point-Based Graphics

Point-Based Graphics

Markus Gross, Hanspeter Pfister

Publisher Resources

ISBN: 9780596805708Errata Page