In this tutorial series, you will learn about the GameplayKit framework added in iOS 9 and OS X El Capitan. In this third and final tutorial, you will learn about random value generators and rule systems. We'll use these features in our game to create a more complex spawning behavior and to introduce fuzzy logic.
Finished project for the Tuts+ tutorial: An Introduction to GameplayKit: Part 3
Read this tutorial on Tuts+