learning objective c by developing iphone games

284 1K 0
learning objective c by developing iphone games

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

www.it-ebooks.info Learning Objective-C by Developing iPhone Games Leverage Xcode and Objective-C to develop iPhone games Amy M. Booker Joseph D. Walters BIRMINGHAM - MUMBAI www.it-ebooks.info Learning Objective-C by Developing iPhone Games Copyright © 2014 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: April 2014 Production Reference: 1180414 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK ISBN 978-1-84969-610-4 www.packtpub.com Cover Image by Joseph D. Walters (joseph@diggablegames.com) www.it-ebooks.info Credits Authors Amy M. Booker Joseph D. Walters Reviewers Michaël Adaixo Paris Butteld-Addison John P. Doran Conrad Irwin Makzan Clifford Matthew Roche Commissioning Editor Martin Bell Acquisition Editors Antony Lowe Gregory Wild Content Development Editor Chalini Snega Victor Technical Editors Tanvi Bhatt Gaurav Thingalaya Copy Editors Janbal Dharmaraj Alda Paiva Laxmi Subramanian Project Coordinator Wendell Palmer Proofreaders Simran Bhogal Paul Hindle Indexer Tejal Soni Graphics Abhinash Sahu Production Coordinator Aditi Gajjar Patel Cover Work Aditi Gajjar Patel www.it-ebooks.info About the Authors 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, specically 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. Thanks to my whole-hearted, supportive husband, Randy, who encouraged me to embark on the adventure of writing. I appreciate and thank my two boys for their meagre allowance of computer time so that I may write. Thank you mom and dad for always believing in me and expecting me to take the risks needed for me to grow. Thank you Paige and Joseph for being so astonishingly trustful. You led me on this path, and I thank you for it. www.it-ebooks.info 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 rm that advised some of the largest technology rms in the world, including IBM, Compaq, AT&T, Bell Labs, and countless others. I would like to thank my family for all of their support throughout the development of this book. Without them, I would not have been able to accomplish this. I would like to specially thank Mark Lemmons for his help on the game art, and Skunk Studios for allowing me to use their audio. www.it-ebooks.info About the Reviewers Michaël Adaixo is a software developer currently working at IS2you developing tools and software for intelligent systems and interactive advertising. He is the creator of an award-winning project called Wi-GO. He currently lives in Portugal and is pursuing his MSc in Computer Science and Engineering. He is writing his thesis on the eld of articial intelligence. Because he is passionate about developing and designing games, he spends his spare time working with Unity 3D to create games. He recently released a casual game for mobile platforms, Memtiles Kids ( http://www.cinderinteractive.net). One day, he hopes to make a living out of developing games, either working at a game company or creating his own. Paris Butteld-Addison is the co-founder of Secret Lab, a mobile game development studio based in Hobart, Tasmania, Australia. He designs games, runs game development projects, and occasionally writes code. He is also the co-author of Learning Cocoa with Objective-C Third Edition, O'Reilly Media, 2012 and iPhone and iPad Game Development For Dummies, Wiley, 2010. He is currently co-writing iOS Game Development Cookbook, O'Reilly Media, 2014 and Mobile Game Development with Unity, O'Reilly Media, 2014. Secret Lab has built hundreds of mobile apps for people around the world, including Meebo for iOS, Android, and BlackBerry (Meebo, Inc., Mountain View, CA; it was acquired by Google in 2012); Play School Art Maker for iOS (2011); Foodi for iPad (2011); Good Game for iPhone (2012); Play School Play Time for iPad (2013, Australian Broadcasting Corporation); National Science Week for iOS (2012-2013); and many others. Paris submitted his PhD at the University of Tasmania (UTAS) in late 2013, where he's part of the Information and Interaction Group. His PhD explores Personal Information Management (PIM) and tablet technology (iPads). www.it-ebooks.info John P. Doran is a technical game designer who has been creating games for over 10 years. He has worked on an assortment of games in teams that constituted of just himself in the beginning to over 70 in student, mod, and professional projects. He previously worked at LucasArts on Star Wars: 1313 as a game design intern. He later graduated from DigiPen Institute of Technology in Redmond, WA, with a Bachelor of Science degree in Game Design. John is currently working at DigiPen's Singapore campus as the lead instructor of the DigiPen-Ubisoft Campus Game Programming Program, instructing graduate-level students in an intensive, advanced-level game-programming curriculum. In addition to this, he also tutors and assists students on various subjects while giving lectures on C++, Unreal, Flash, Unity, and more. He is the author of the following books: • Getting Started with UDK, Packt Publishing • Mastering UDK Game Development, Packt Publishing He has also co-authored UDK iOS Game Development Beginner's Guide, Packt Publishing. Conrad Irwin is a computer programmer who specializes in developer and productivity tools. He helped build Rapportive in a way through which anyone could become more effective at e-mailing people, and now works on making Bugsnag, the best tool for tracking exceptions in production. His other projects include Pry, the featureful development console for Ruby, and showterm.io, which lets developers share what they see on the terminal easily. When not programming, he enjoys Irish and American dancing and blogs at http://cirw.in/. www.it-ebooks.info Makzan is a developer with a specialty in web development and game design. He has over 10 years' experience in building digital products, including real-time multiplayer interaction games and iOS applications. He has written two books and one screencast series for building a Flash virtual world and creating games with HTML5 using the latest web standards. He is now organizing different kinds of courses in Hong Kong and Macao. I would like to thank my wife, Candy Wong, for supporting all my writings. Clifford Matthew Roche is a self-taught game programmer who has been working on AAA projects since 2008, focusing on engine development, performance, and animation. He is credited on several games, including NHL 09, FIFA 10, and Motion Sports: Adrenaline. Recently, he started his own game development company, Firestarter Games, where he works to bring high-quality games to mobiles and consoles with Unity3D. Firestarter Games' rst project, Globulous, was nominated for Best Audio (Casual/ Indie) at the Audio Network Guild Music Awards. www.it-ebooks.info www.PacktPub.com Support les, eBooks, discount offers, and more You might want to visit www.PacktPub.com for support les and downloads related to your book. Did you know that Packt offers eBook versions of every book published, with PDF and ePub les available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@ packtpub.com for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. TM http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. Why Subscribe? • Fully searchable across every book published by Packt • Copy and paste, print and bookmark content • On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access. www.it-ebooks.info [...]... embrace software development Using Objective- C and the Xcode IDE, you can produce awesome games and launch them on the App Store, allowing you to make and sell games quickly and easily Welcome to Learning Objective- C by Developing iPhone Games This book will offer you a step -by- step process to develop iPhone games using the Objective- C programming language You will be intrigued by the use of old games, ... make changes where necessary or click on the Place Order Now button to go to the next screen 8 In the Program License Agreement page, read through the license agreements and click on the I Agree button 9 Add the developer program to your cart Click on Continue once you have entered all of the necessary information to pay for your account 10 You will receive an e-mail from Apple with a verification code... Summary 28 Chapter 2: Programming and Objective- C Understanding Objective- C Programming basics Basic data types Text data types Numeric data types 29 29 30 30 30 31 www.it-ebooks.info Table of Contents Other data types 31 Arithmetic operators Comparison operators Logical operators Increment and decrement operators Compound operators 35 35 36 37 37 Variables 32 Constants 33 Comments 33 Operators 35 Control... Table of Contents Using other mechanisms 201 Shake 202 Orientation 202 Tilt 204 Motion 206 Summary 207 Chapter 8: The Galaxy Game 209 Chapter 9: Releasing Your Game 241 Planning the game 209 Creating the game concept document 210 Creating the game design document 210 Creating the technical design document 211 Considering the design and flow 212 Focusing on resource management 213 Creating game screens... you are comfortable creating a repository, feel free to check this box Otherwise, just leave it unchecked since it creates a lot of hidden files on your hard drive If you are interested in learning about Git, feel free to check out their site: http://git-scm.com [ 17 ] www.it-ebooks.info The Environment – Installing and Working with Xcode The Xcode workspace Once you have created your project, you... Errata section of that title Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support Piracy Piracy of copyright material on the Internet is an ongoing problem across all media At Packt, we take the protection of our copyright and licenses very seriously If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location... Becoming an iOS developer • Downloading and installing Xcode • The Xcode IDE • Opening Xcode for the first time • The Xcode workspace Becoming an Apple developer Before you can begin building apps and games for the iPhone, you will need to become a certified Apple developer, which gives you free access to Apple's developer website, programming tools, tutorials, documentation, and much more As a certified... are structured and how this works in games We will take you through the basics of object-oriented programming and a description of how Objective- C uses classes We will wrap up the chapter with an explanation of how the model-view-controller design pattern applies to iOS programming www.it-ebooks.info Preface Chapter 3, iPhone Game Development Basics – The Matching Game, explains the CoreGraphics, Foundation,... applications directory or through Apple's Launchpad If you have never created or opened an Xcode project before, you should be presented with a screen that looks similar to the following: [ 14 ] www.it-ebooks.info Chapter 1 2 In the Welcome to Xcode dialog, select the Create a new Xcode project button If you have created a project with Xcode previously, this dialog panel may not show up If this is the case,... company's name, an acronym for their project, or their initials Although this is not necessary, it does prevent collisions with other classes that may end up having the same names 7 Once you have all of your information entered, click on the Next button 8 Choose a place to save your project and click on the Create button 9 You have now created your first iOS application Once it is created, you are brought . www.it-ebooks.info Learning Objective- C by Developing iPhone Games Leverage Xcode and Objective- C to develop iPhone games Amy M. Booker Joseph D. Walters BIRMINGHAM - MUMBAI www.it-ebooks.info Learning Objective- C. content • On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view. to Learning Objective- C by Developing iPhone Games. This book will offer you a step -by- step process to develop iPhone games using the Objective- C programming language. You will be intrigued by

Ngày đăng: 01/08/2014, 16:59

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Authors

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • 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

Tài liệu cùng người dùng

Tài liệu liên quan