更新时间:2021-07-23 14:42:57
封面
版权页
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. The First Step toward SpriteKit
Game engines
Creating a new SpriteKit project
Running the project for first time
The SKNode class
SKScene
Your first game – InsideTheHat
Our first SKSpriteNode class
Adding a background
Working with screen resolutions
Summary
Chapter 2. What Makes a Game a Game?
Handling touch events
1-star challenge: an easier way to reset position
Collision management
1-star challenge: check collisions accurately
Creating labels
Playing some music
2-star challenge: reproducing sound effects
Chapter 3. Taking Games One Step Further
Extending the SKNode class
2-star challenge: colliding puppets
The parallax effect
Creating animations in SpriteKit
2-star challenge: animate collisions
Geometrical primitives
Chapter 4. From Basic to Professional Games
Ending the game
3-star challenge: restarting a game
Creating a main menu
Transitions and scenes
Creating a tutorial
Loading and saving data
2-star challenge: completing the tutorial
Chapter 5. Utilizing the Hardware and Graphics Processor
Using the accelerometer
Adding shaders to our game
Turning on the lights
2-star challenge: moving lights
Chapter 6. Auxiliary Techniques
Creating particle systems
Combining SpriteKit and UIKit
Using third-party tools
How to find audio files
How to find images
Index