Leverage Xcode and Objective-C to develop iPhone games with this book and ebook<br>Overview<br>Get started with the Xcode development environment<br>Dive deep into programming with Objective-C<br>A practical and engaging tutorial to create vintage games such as Space Invaders and Galaga<br>In Detail
Learning Objective-C by Developing iPhone Games
โ Scribed by Amy M. Booker, Joseph D. Walters
- Publisher
- Packt Publishing
- Year
- 2014
- Tongue
- English
- Leaves
- 284
- Edition
- 1st Edition
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
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
โฆ Table of Contents
Cover......Page 1
Copyright......Page 3
Credits......Page 4
About the Authors......Page 5
About the Reviewers......Page 7
www.PacktPub.com......Page 10
Table of Contents......Page 12
Preface......Page 18
Becoming an Apple developer......Page 24
Registering as an Apple developer......Page 25
Registering as an iOS developer......Page 27
Downloading and installing Xcode......Page 30
Opening Xcode for the first time......Page 31
The toolbar......Page 35
The View buttons......Page 36
The Navigation area......Page 37
The Editor area......Page 39
The Debugger area......Page 40
The Utility area......Page 41
The iOS Simulator......Page 43
Summary......Page 45
Understanding Objective-C......Page 46
Text data types......Page 47
Other data types......Page 48
Variables......Page 49
Comments......Page 50
Comparison operators......Page 52
Logical operators......Page 53
Compound operators......Page 54
The ifโฆelse statement......Page 55
The switch statement......Page 56
The for loop......Page 58
The do while loop......Page 59
The continue statement......Page 60
Functions......Page 61
Variable scope......Page 62
Object-oriented programming......Page 63
Methods......Page 64
Pointers......Page 65
NSString......Page 66
NSMutableString......Page 67
NSNumber......Page 68
NSMutableSet......Page 69
NSArray......Page 70
Hello World!......Page 71
@implementation......Page 75
Model-view-controller......Page 79
Summary......Page 80
Scenes and views......Page 82
Understanding storyboards......Page 87
The memory game code......Page 97
Frameworks......Page 102
Building our game scene......Page 103
Summary......Page 121
Understanding screens and graphics......Page 122
Adding graphics programmatically......Page 123
Moving our ship sprite......Page 129
Creating our enemies......Page 134
Using a sprite sheet......Page 141
Creating the enemy bombs......Page 147
Summary......Page 153
Understanding the game logic......Page 154
Understanding state machines......Page 155
Learning the game state......Page 157
Collision detection......Page 168
Timers and frame rates......Page 169
Debugging your code......Page 170
Summary......Page 176
Introduction to audio......Page 178
Data formats......Page 179
The Simon Says game......Page 180
Summary......Page 199
Using user input and touch events......Page 200
Using gestures in iOS apps......Page 201
Using touch start, move, and end......Page 210
Initializing our code......Page 212
Touch events......Page 215
Updating the screen......Page 216
Using other mechanisms......Page 218
Orientation......Page 219
Tilt......Page 221
Motion......Page 223
Summary......Page 224
Planning the game......Page 226
Creating the game design document......Page 227
Creating the technical design document......Page 228
Considering the design and flow......Page 229
Focusing on resource management......Page 230
Creating game screens......Page 232
Building the user interface......Page 235
Setting up the gameplay environment......Page 248
Creating and controlling the player......Page 249
Creating and controlling the enemies......Page 253
Collision detection......Page 254
Adding sounds......Page 255
Summary......Page 256
Preparing your app for distribution......Page 258
The version number and build string......Page 259
Team......Page 260
The deployment information......Page 261
Selecting app icons and launch images......Page 262
Register all test devices......Page 264
App ID......Page 266
Ad hoc provisioning profile......Page 267
iTunes Connect app......Page 268
Summary......Page 269
Chapter 10: Conclusion......Page 270
The social framework......Page 271
Exploring game engines......Page 272
Summary......Page 273
Index......Page 274
๐ SIMILAR VOLUMES
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 basic
I had entered the following under the comments section of a previous and after the last 10 days of digging into code I thought I should use it to create a review. I have to admit that I had serious misgivings about purchasing this book after reading the other reviews. One of my friends at work recom
What do you need to know to create a game for the iPhone? Even if you've already built some iPhone applications, developing games using iPhone's gestural interface and limited screen layout requires new skills. With iPhone Game Development, you get everything from game development basics and iPhone
What do you need to know to create a game for the iPhone? Even if you've already built some iPhone applications, developing games using iPhone's gestural interface and limited screen layout requires new skills. With iPhone Game Development, you get everything from game development basics and iPhone