Skip to Main Content
Learn Sprite Kit for iOS Game Development
book

Learn Sprite Kit for iOS Game Development

by Leland Long
June 2014
Beginner content levelBeginner
256 pages
5h 38m
English
Apress
Content preview from Learn Sprite Kit for iOS Game Development

Chapter     8

Contacts and Collisions

Didn’t You Cover this Already?

Yes, I did cover much of this already. Back in Chapter 5, you were introduced to contacts and collisions so that you could have your Ratz and coins bounce off of each other. But you’re not done yet. You need a way for your enemies to keep from wandering around the base level. You need your player to be able to collect coins and kick vermin off the ledges after knocking them unconscious. Also, to add some challenge, your hero will “die” if it runs into vermin that are not currently unconscious. All of these additions require careful handling of contacts and collisions.

Contacts vs. Collisions

So what is the difference between these two events, anyway? Think of it in this overly ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Build iOS Games with Sprite Kit

Build iOS Games with Sprite Kit

Jonathan Penn, Josh Smith
Beginning Swift Games Development for iOS

Beginning Swift Games Development for iOS

James Goodwill, Wesley Matlock
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9781430264408Purchase book