Join Tammy Coron for an in-depth discussion in this video GameplayKit features, part of iOS 9 App Development: GamePlayKit.
- GameplayKit comes with so many powerful features that just as I was finished learning about one another one was right there waiting behind it. GameplayKit is truly designed to help you build better games. Before we take a look at what GameplayKit has to offer, there's one question you need to ask yourself first. Do you intend to support previous versions of iOS? If so, GameplayKit is not an option. GameplayKit is not available on previous versions of iOS. It was introduced with iOS 9 and as such, is not compatible with previous versions.
On the plus side, Apple has a high rate of people keeping their devices up to date so this might not be a huge issue. The next question you need to ask yourself is do you intend to create engaging games using the latest Apple technologies. I hope the answer to that question is yes. So let's take a look at what GameplayKit has to offer. The first is randomization. Randomization lets you add unpredictable, yet controlled, game play to your games, and because GameplayKit is an object-oriented framework, you can use its entity-component architecture to help you build sustainable and reusable code.
Another feature of GameplayKit are state machines. State machines help manage and organize state dependent code. For example, code that runs while the user is playing the game versus code that runs while the game is paused. In addition to state machines, with GameplayKit, you can easily add artificial intelligence to your games. For example, you can model the navigability of your game world and then add pathfinding to help navigate your characters around obstacles while staying on a set path, but it doesn't stop there.
GameplayKit also provides a mechanism for agent simulation. Agent simulations let you implement autonomous movement for your heroes and your enemies. This movement is based on goals and behaviors that you setup, but that still doesn't cover everything. GameplayKit even includes a rule system where you can define brillouin or fuzzy logic to help your characters draw their own conclusions based on the state of the world around them. However, the best feature of GameplayKit is that it doesn't necessarily care about your game engine.
It's truly independent. This means you can combine it with other technologies like SpriteKit and SceneKit. As you can see, GameplayKit gives you a lot of tools for building games, but is it right for your game? I believe it is. If just one of these tools can bring you closer to building your game, whether it be randomization for a card game or pathfinding for a tower defense game, then GameplayKit is right for you, and this course will help you get started.
- What is GameplayKit?
- Working with random sources and distributions
- Adding randomization to games
- Working with entities and components
- Defining and creating states and behaviors
- Designing a game for AI
- Adding pathfinding to avoid obstacles
- Using the agent system to manage player movement
- Creating a simple rules system