O'Reilly logo

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

Mastering iOS Game Development

Book Description

Master the advanced concepts of game development for iOS to build impressive games

About This Book

  • Create a complete game with advanced techniques through the course of the book using in-depth, hands-on instructions
  • Learn how to multi-task and improve performance optimization in your game playing experience
  • The author, Miguel, has 11 years of iOS game development using xcode and has released over 10 games to the Apple AppStoreMaster player movement using touch controls as well as discuss motion controls

Who This Book Is For

This book is for those who have created an iOS game already and want to hone their skills. A reasonable level of knowledge and an understanding of the core elements and applications would be helpful.

What You Will Learn

  • Blast off and start developing fun games
  • Optimize the assets for the best performance in the game app
  • Master player movement using touch controls as well as discuss motion controls
  • Perform bug Squashing by testing and debugging
  • Design interesting various characters and enemies for your game
  • Test your game on both, the simulator on the computer and on real devices
  • Tweak and fine tune the code and graphics before the release of your app
  • Uncover some awesome new gameplay by adding in multiplayer elements, to get more people playing together

In Detail

iOS is an operating system for Apple manufactured phones and tablets. Mobile gaming is one of the fastest-growing industries, and compatibility with iOS is now becoming the norm for game developers. SpriteKit is part of the native SDK from Apple, and enables developers to make simple entry into game development without unnecessary overhead and a long learning process. SpriteKit also provides other functionality that is useful for games, including basic sound playback support and physics simulation. In addition, Xcode provides built-in support for SpriteKit so that you can create complex special effects and texture atlases directly in Xcode. This combination of framework and tools makes SpriteKit a good choice for games and other apps that require similar kinds of animation.

Become a master in iOS game development through this fast and fun guide!

In the beginning, we’ll tell you everything you need to plan and design your game. You’ll then start developing your game through step-by-step instructions using the various built-in technologies of Xcode. From there on, we discuss how to deploy your game to the iOS App Store, as well as monetizing it to make more revenue. You will also learn advanced techniques to improve your game playing experience, including better multi-tasking, improved performance optimization, battery management, and more. To end the book off, we’ll show you how to update your game with different features, then port the update to the App Store.

Style and approach

This book provides an easy-to-understand and fun approach to game development, with step-by-step instructions and detailed explanation of each block of code. The topics covered range from easy to advanced, so buckle up for a fast-paced ride!

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 http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

Table of Contents

  1. Mastering iOS Game Development
    1. Table of Contents
    2. Mastering iOS Game Development
    3. Credits
    4. About the Author
    5. About the Reviewer
    6. www.PacktPub.com
      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. What to Expect in Xcode and Game Development
      1. Registering to be an iOS developer
        1. Asset creation for your awesome game
        2. Entering the game development market
      2. Summary
    9. 2. Creating the Stuff
      1. Let's talk assets
        1. Sprites
        2. Sound effects
          1. File type
        3. Music
          1. Formats
          2. Best software
        4. Videos
          1. File type
          2. Best software
      2. Creating optimized assets
        1. Video conversion
        2. Audio conversion
      3. How to design your game
      4. Game design document
      5. Summary
    10. 3. Blast Off! Starting with Development
      1. Creating a SpriteKit project in Xcode
        1. Editing our code files
      2. Level design and implementation
      3. Gravity – player movement
      4. Collision detection
        1. Making our player dance!
      5. Summary
    11. 4. Let's Keep Going! Adding More Functionality
      1. Adding awesome sound effects
        1. Character animations
        2. Playing with particles
          1. Background
          2. Particle texture
          3. Particle birthrate
          4. Particle life cycle
          5. Particle position range
          6. Angle
          7. Particle speed
          8. Particle acceleration
          9. Particle scale
          10. Particle rotation
          11. Particle color
          12. Particle blend mode
        3. Creating menus and multiple levels
      2. Creating enemies
      3. Summary
    12. 5. Bug Squashing – Testing and Debugging
      1. Testing our project
      2. Setting up TestFlight users
        1. What's a TestFlight user?
        2. Internal testers
        3. External testers
        4. Using TestFlight as a beta tester
          1. Installation
          2. Testing
          3. Opting out of testing
      3. Squashing those bugs!
      4. Summary
    13. 6. Making Our Game More Efficient
      1. Managing effects
        1. Battery management – doing less in the background
      2. Summary
    14. 7. Deploying and Monetizing
      1. Preparing to deploy
        1. Tips for monetizing
          1. iAds
          2. AdMob
        2. Implementing Chartboost!
      2. Summary
    15. 8. It's Too Dangerous to Go Alone, Take a Friend!
      1. Multiplayer integration
      2. Game Center integration
      3. Pushing updates to the AppStore!
        1. I didn't forget... I just missed it
      4. You're done!
      5. Summary
    16. Index