You are previewing iOS 7 Game Development.
O'Reilly logo
iOS 7 Game Development

Book Description

No need for engines like Unity: with Sprite Kit you can create 2D animated games directly for the iOS platform. Best of all, with this book you can learn the fun, involving way – by creating your own game from scratch.

In Detail

Sprite Kit, a new framework introduced in iOS7, has been designed as a built-in animation workflow for keyframing 2D animation without the need of engines such as Unity to serve as an intermediate. Sprite Kit enables the easy and fast development cycle, leaving more time to work on gameplay and polish, and less on tedious tasks.

This book offers a practical approach to game development with the Sprite Kit framework of iOS7 platform, by creating an endless runner game. You will gain a full understanding of the new Apple framework along with tips and tricks to interact with the game either by detecting taps, using sophisticated gesture recognizers, and moving sprites by dragging.

Starting with how to get your first sprite on screen, and then moving on to complicated physics and animations, we will be learning about the new features that iOS7provides for game development. You will also learn how to optimize your game performance, how to add animation files and create texture atlas in Xcode 5, and how to build different particles. By the end of the book, you will learn about leaderboards and ready-to-hand utilities for player authentication and secure player data transfer.

This book will teach you everything you need to know to create your own powerful and immersive games.

What You Will Learn

  • Create and run your own animations
  • Utilize particle systems and create custom particle effects
  • Understand the physics engine and how to use it to your advantage
  • Add support for new game controllers from Apple
  • Optimize your game for performance
  • Use gestures to control game-play
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.

    Table of Contents

    1. iOS 7 Game Development
      1. Table of Contents
      2. iOS 7 Game Development
      3. Credits
      4. About the Author
      5. About the Reviewers
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Updates on iOS 7
        1. Redesigning the iOS
        2. New APIs
        3. Developing games for iOS 7
        4. Framework for game development
        5. Knowing about Sprite Kit
        6. Benefits of Sprite Kit
        7. Game controller support
        8. Game center renovations
        9. Summary
      9. 2. Our First Sprite Kit Project
        1. Sprite Kit basics
        2. Anatomy of a Sprite Kit project
        3. Scenes
        4. Nodes
          1. Node types
        5. Actions
        6. Game loop
        7. Adding a background image to our game
        8. Moving the character with actions
        9. Adding infinite scrolling
        10. Adding a score label
        11. Summary
      10. 3. Interacting with Our Game
        1. Handling touches
        2. Using gesture recognizers
        3. Accelerometer
        4. Physics engine
          1. Physics simulation basics
          2. Implementing the physics engine
        5. Summary
      11. 4. Animating Sprites
        1. What is animation?
        2. What is a texture atlas?
        3. Adding animations to our project
        4. Character states
        5. Adding shield animations
        6. Adding a parallax background
        7. Summary
      12. 5. Particle Effects
        1. Particle emitters
        2. First particle effect
        3. Advanced physics
        4. Scene transitions
        5. Summary
      13. 6. Adding Game Controllers
        1. Native game controllers
        2. Game controller basics
        3. Using a controller in our game
        4. Handling controller notifications
        5. Adding sound and music
        6. Summary
      14. 7. Publishing to the iTunes App Store
        1. Registering as a developer
        2. Bundle ID
        3. Provisioning profiles
        4. Preparing our application for the App Store
        5. Managing applications in iTunes Connect
        6. Life after uploading
        7. Summary
      15. Index