You are previewing Beginning iOS 6 Games Development.
O'Reilly logo
Beginning iOS 6 Games Development

Book Description

Game apps on iPhone and now The New iPad remain one of the most popular type of apps in the Apple iTunes App Store. Does Angry Birds ring a bell? Now, you can learn to build game apps for the iPhone 5 and The New iPad using the new iOS 6 SDK.

Beginning iOS 6 Games Development provides a clear path for you to learn and create iPhone and iPad game apps using the iOS 6 SDK platform. You'll learn how to use the core classes to create rich and dynamic games apps, including graphics, animations, and sound. The latest version of Xcode 4.5 will be used in parts of the book to guide you along the way of building your iPhone or iPad game apps.

Other topics include iOS 6 game apps development with the newest iOS Game Center update, persisting user data, and designing a compelling user experience. After reading this book, you'll come away with the skills and techniques for building a game app, top to bottom, that could perhaps even be sold on the Apple iTunes App Store.

*** NOTE: This book is an update of Beginning iOS 5 Games Development (ISBN-13: 978-1430237105) and Beginning iPhone Games Development (ISBN-10: 1430225998).

What you'll learn

  • What to learn and how to build iPhone and iPad game apps using iOS 6 SDK

  • How to use UIViews to display game assets

  • How to leverage Core Animation to simplify animations

  • How to create frame-by-frame animations for action games

  • How to play sound using media classes

  • How to integrate with Game Center and other social media services

  • How to use Core Data to persist game state

Who this book is for

This book is for new iPhone and iPad app developers who want to create game apps, using the iOS SDK. A basic understanding of Xcode and Objective-C is assumed.

Table of Contents

  1. Title
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Author
  6. About the Technical Reviewer
  7. Acknowledgments
  8. Chapter 1: A Simple First Game
    1. Creating a Project in Xcode: Sample 1
    2. Customizing Your Project
    3. Summary
  9. Chapter 2: Setting up Your Game Project
    1. Creating Your Game Project
    2. Customizing a Universal Application
    3. Understanding UIViewControllers
    4. Graphically Designing Your UI in a Universal Way
    5. Summary
  10. Chapter 3: Explore the Game Application Life Cycle
    1. Understanding the Views in a Game
    2. Understanding the Project’s Structure
    3. Preserving Game State
    4. Summary
  11. Chapter 4: Quickly Build an Input-Driven Game
    1. Exploring How to Get Content on the Screen
    2. Understanding Animations
    3. Building the Game Coin Sorter
    4. Animating Views with Core Animation
    5. Summary
  12. Chapter 5: Quickly Build a Frame-by-Frame Game
    1. Setting Up Your First Frame-by-Frame Animation
    2. Simple Movement
    3. Understanding CADisplayLink and NSRunLoop
    4. Abstracting the UI
    5. Actor State and Animations
    6. Summary
  13. Chapter 6: Create Your Characters: Game Engine, Image Actors, and Behaviors
    1. Understanding the Game Engine Classes
    2. Working with the Power-Up Actor
    3. Summary
  14. Chapter 7: Build Your Game: Vector Actors and Particles
    1. Saucers, Bullets, Shields, and Health Bars
    2. Drawing Actors with Core Graphics via VectorRepresentation
    3. Adding Particle Systems to Your Game
    4. Summary
  15. Chapter 8: Building Your Game: Understanding Gestures and Movements
    1. Touch Input: The Basics
    2. Understanding Gesture Recognizers
    3. Swipe Gesture
    4. Interpreting Device Movements
    5. Summary
  16. Chapter 9: Game Center and Social Media
    1. Game Center
    2. Twitter Integration
    3. Facebook Integration
    4. Summary
  17. Chapter 10: Monetizing via the Apple App Store
    1. In-App Purchases
    2. Overview of Purchase Types
    3. Preparing for In-app Purchases
    4. Class and Code for In-App Purchases
    5. In-App Purchase Implementation
    6. Driving the UI from Existing Purchases
    7. Making the Purchase
    8. Responding to a Successful Purchase
    9. Summary
  18. Chapter 11: Add Sound to Your Game
    1. How to Play Sound
    2. Correct Audio Behavior
    3. Implementing Sound in Your Game
    4. Audio in a Game
    5. Summary
  19. Chapter 12: A Completed Game: Belt Commander
    1. Belt Commander: Game Recap
    2. Implementing the Game
    3. Summary
  20. Chapter 13: Physics!
    1. Overview of the Physics-Based Example
    2. An Overview of Box2D
    3. Adding Box2D to an Xcode Project
    4. Understanding the Example
    5. Summary
  21. Appendix A: Designing and Creating Graphics
    1. The Art in Video Games
    2. Creating the Images Files
    3. Tools
    4. Inkscape
    5. Summary
  22. Index