Book description
Swift Game Programming for Absolute Beginners teaches Apple’s Swift language in the context of four, fun and colorful games. Learn the Swift 2.0 language, and learn to create game apps for iOS at the same time – a double win!
The four games you’ll develop while reading this book are:
These four games are casual, arcade-style games representing the aim-and-shoot, casual, puzzle, and platform styles of game play. Professionally developed game assets form part of the book download. You’ll get professionally drawn sprites and imagery that’ll have you proud to show your learning to friends and family.
The approach in Swift Game Programming for Absolute Beginners follows the structure of a game rather than the syntax of a language. You’ll learn to create game worlds, manage game objects and game states, define levels for players to pass through, implement animations based upon realistic physics, and much more. Along the way you’ll learn the language, but always in the context of fun and games.
Swift is Apple’s new programming language introduced in 2014 to replace Objective-C as the main programming language for iOS devices and Mac OS X. Swift is a must learn language for anyone targeting Apple devices, and Swift Game Programming for Absolute Beginners provides the most fun you’ll ever have in stepping over the threshold toward eventual mastery of the language.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Part I: Getting Acquainted
-
Part II: Getting Acquainted
- Chapter 5: Reacting to Player Input
- Chapter 6: A Flying Ball
-
Chapter 7: Game Object Types
- Creating Multiple Objects of the Same Type
- Classes as Types
- Input Handling in a Separate Class
- Initializing Objects
- The Self Keyword
- Accessing Other Objects Using Static Variables
- The Double Role of Classes
- Writing a Class with Multiple Instances
- Dealing with Randomness in Games
- Calculating a Random Velocity and Color
- Updating the Paint Can
- What You Have Learned
- Chapter 8: Colors and Collisions
- Chapter 9: Limited Lives
- Chapter 10: Organizing Game Objects
- Chapter 11: Finishing the Painter Game
- Part III: Getting Acquainted
- Part IV: Getting Acquainted
- Part V: Getting Acquainted
- Index
Product information
- Title: Swift Game Programming for Absolute Beginners
- Author(s):
- Release date: July 2015
- Publisher(s): Apress
- ISBN: 9781484206508
You might also like
book
iOS Swift Game Development Cookbook, 2nd Edition
Ready to make amazing games for the iPhone, iPad, and iPod touch? With Apple’s Swift programming …
book
iOS 13 Programming Fundamentals with Swift
Move into iOS development by getting a firm grasp of its fundamentals, including the Xcode 10 …
video
iOS 13 Programming with Swift 5 - Second Edition
The iOS 13 SDK arrives as a major milestone in the evolution of the Swift language …
book
Swift 5 for Absolute Beginners: Learn to Develop Apps for iOS
Stay motivated and overcome obstacles while learning to use Swift Playgrounds and Xcode 10.2 to become …