Learning Objective-C by Developing iPhone Games

Learning Objective-C by Developing iPhone Games
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Get started with the Xcode development environment
  • Dive deep into programming with Objective-C
  • A practical and engaging tutorial to create vintage games such as Space Invaders and Galaga

Book Details

Language : English
Paperback : 284 pages [ 235mm x 191mm ]
Release Date : April 2014
ISBN : 1849696101
ISBN 13 : 9781849696104
Author(s) : Joseph D. Walters, Amy M. Booker
Topics and Technologies : All Books, Other

Table of Contents

Chapter 1: The Environment – Installing and Working with Xcode
Chapter 2: Programming and Objective-C
Chapter 3: iPhone Game Development Basics – The Matching Game
Chapter 4: Drawing Pictures – Space Invaders
Chapter 5: The Game Engine – Space Invaders Part 2
Chapter 6: The Audio Engine – The Simon Memory Game
Chapter 7: User Interactivity – Mini Golf
Chapter 8: The Galaxy Game
Chapter 9: Releasing Your Game
Chapter 10: Conclusion
  • Chapter 1: The Environment – Installing and Working with Xcode
    • Becoming an Apple developer
      • Registering as an Apple developer
    • Becoming an iOS developer
      • Registering as an iOS developer
    • Downloading and installing Xcode
    • The Xcode IDE
      • Opening Xcode for the first time
    • The Xcode workspace
      • The toolbar
        • The Stop button
        • The Scheme pop-up menu
        • The Activity viewer
        • The Editor buttons
        • The View buttons
      • The Navigation area
      • The Editor area
      • The Debugger area
      • The Utility area
    • The iOS Simulator
    • Summary
  • Chapter 2: Programming and Objective-C
    • Understanding Objective-C
    • Programming basics
      • Basic data types
        • Text data types
        • Numeric data types
        • Other data types
      • Variables
      • Constants
      • Comments
      • Operators
        • Arithmetic operators
        • Comparison operators
        • Logical operators
        • Increment and decrement operators
        • Compound operators
      • Control statements
        • The if statement
        • The if…else statement
        • The if…else if statement
        • The switch statement
      • Loops
        • The for loop
        • The while loop
        • The do while loop
        • The break statement
        • The continue statement
      • Functions
      • Variable scope
    • Object-oriented programming
      • Objects
      • Classes
      • Methods
      • Pointers
      • Objective-C data types
        • NSString
        • NSMutableString
        • NSNumber
        • NSSet
        • NSMutableSet
        • NSArray
        • NSMutableArray
    • Hello World!
    • Programming with Objective-C
      • @interface
      • @implementation
    • Model-view-controller
    • Summary
  • Chapter 7: User Interactivity – Mini Golf
    • Using user input and touch events
    • Using gestures in iOS apps
    • Using touch start, move, and end
      • Initializing our code
      • Touch events
      • Updating the screen
    • Using other mechanisms
      • Shake
      • Orientation
      • Tilt
      • Motion
    • Summary
  • Chapter 8: The Galaxy Game
    • Planning the game
      • Creating the game concept document
      • Creating the game design document
      • Creating the technical design document
    • Considering the design and flow
    • Focusing on resource management
    • Creating game screens
    • Building the user interface
    • Setting up the gameplay environment
    • Creating and controlling the player
    • Creating and controlling the enemies
    • Collision detection
    • Adding sounds
    • Summary
  • Chapter 9: Releasing Your Game
    • Preparing your app for distribution
    • Selecting your identity
      • The bundle identifier
      • The version number and build string
      • Team
    • The deployment information
      • The deployment target
      • Devices
      • The device orientation
      • The status bar style
    • Selecting app icons and launch images
      • Linked frameworks and libraries
    • Beta testing and ad hoc distribution
      • Register all test devices
      • App ID
      • Ad hoc provisioning profile
      • Archive and create your app package
      • Installing on test devices
      • iTunes Connect app
    • Avoiding rejection from the App Store
    • Summary
  • Chapter 10: Conclusion
    • Developing an app for iPad
    • Using Apple's game center
    • In-app purchasing
    • Implementing iAd
    • The social framework
    • Core Location and Map Kit
    • Saving space with iCloud
    • Exploring game engines
    • Summary

Joseph D. Walters

Joseph D. Walters has been immersed in the creativity, technology, and business of software and game development for over 20 years. He currently is a partner at Third Track Inc., a game development and game technology company. Before Third Track Inc., he was the CEO at MindFuse Games, where he helped raise capital from angel investors and led the development of a massive multiplayer-gaming world. Joseph was also a full partner and technical director at Skunk Studios, one of the leading full-service developers dedicated to bringing casual games to the mass market. Prior to founding Skunk Studios, he was a senior engineer at Shockwave.com, where he developed some of the most popular titles on Shockwave's website. Before starting at Shockwave.com, Joseph owned a top consulting firm that advised some of the largest technology firms in the world, including IBM, Compaq, AT&T, Bell Labs, and countless others.

Amy M. Booker

Amy M. Booker is new to writing. Along the way, she has become a happy gamer and has been raising her family to enjoy and appreciate the art of games, whether card, board, or video. As an advocate of special needs, specifically Autism, she hopes to write a book or design a game to support those with special needs. Amy lives in San Ramon, California, with her husband and their two boys.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Learning Objective-C by Developing iPhone Games +    IBM Cognos TM1 Cookbook =
50% Off
the second eBook
Price for both: £32.45

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Understand the basics of Objective-C and develop code in the iOS language
  • Set up multiple screens in iOS and make easy transitions from one screen to another
  • Create a simple audio-based memory game using basic game logic
  • Display a background image for your game and program your aliens to drop bombs
  • Build a simple user interface using Xcode's interface builder
  • Program your graphics to move using buttons, gestures, and multitouch interactivity
  • Overcome common issues that developers run in to at one point or another
  • Explore the Apple Store and iTunes Connect's submission process and prepare your app for distribution

In Detail

The introduction of the Apple Store has empowered thousands, even millions of people to embrace software development. Using Objective-C and the Xcode IDE, you can produce awesome games and launch them on the Apple Store allowing you to make and sell games quickly and easily.

From learning the basics of Objective-C to deploying to the App Store, you'll use this book to learn about game development in a matter-of-fact, helpful manner. Whether you're new to game development, or just want to learn how to leverage Apple's own tools to expand your skill set, you'll quickly move from a beginner to an expert.

The book kicks off with the basics of game development, and you will take your first steps with using Xcode, the official Apple programming IDE, before moving on to the most important concepts involved in programming games using Objective-C. This book is a hands-on guide to developing the game of your dreams in no time for the Apple Store.


Written as a practical and engaging tutorial, this book guides you through the development of your own exciting, fully featured, games.

Who this book is for

If you are a beginner and an enthusiast who dreams about creating games and is in need of some additional inspiration and knowledge, then this book is for you. No programming experience is expected.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software