Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Getting Started with SpriteKit
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. The First Step toward SpriteKit
Game engines
Creating a new SpriteKit project
Running the project for first time
How the default project looks like
The SKNode class
The SKNode class properties
The position property
The frame property
The zPosition property
The hidden property
An alpha property
The children node
name
userInteractionEnabled
Using SKNode to organize a scene
SKScene
The game loop
The SKScene properties
scaleMode
anchorPoint
size
backgroundColor
Your first game – InsideTheHat
Our first SKSpriteNode class
Adding a background
Working with screen resolutions
Summary
2. What Makes a Game a Game?
Handling touch events
Handling actions
Building a wall
Running through the doors
1-star challenge: an easier way to reset position
Solution
Creating loops
Installing doors into the wall
Collision management
Understanding collisions
Handling collisions
1-star challenge: check collisions accurately
Solution
Creating labels
Aligning labels
Playing some music
AVFoundation
2-star challenge: reproducing sound effects
Solution
Summary
3. Taking Games One Step Further
Extending the SKNode class
Creating a new class
Handling the behavior of custom classes
2-star challenge: colliding puppets
Solution
The parallax effect
The update method and delta times
Creating animations in SpriteKit
2-star challenge: animate collisions
Solution
Geometrical primitives
Summary
4. From Basic to Professional Games
Ending the game
3-star challenge: restarting a game
Solution
Creating a main menu
Transitions and scenes
The SKTransition class
Creating a tutorial
Updating the tutorial steps
Loading and saving data
The NSUserDefaults class
2-star challenge: completing the tutorial
Solution
The property list files
Summary
5. Utilizing the Hardware and Graphics Processor
Using the accelerometer
The CMMotionManager class
Compensating for the position of the device
Adding shaders to our game
Turning on the lights
Creating lights with the editor
Programmatically creating lights
2-star challenge: moving lights
Solution
Summary
6. Auxiliary Techniques
Creating particle systems
Creating an emitter with the editor
Creating the emitter programmatically
Combining SpriteKit and UIKit
Including UIKit in a game
Including SpriteKit in an app
Using third-party tools
Creating audio resources
Voice memos
Audacity
GarageBand
Font makers
How to find audio files
How to find images
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →