Contents

GameplayKit

Architect and organize your game logic. Incorporate common gameplay behaviors such as random number generation, artificial intelligence, pathfinding, and agent behavior.

Overview

GameplayKit is an object-oriented framework that provides foundational tools and technologies for building games. GameplayKit includes tools for designing games with functional, reusable architecture, as well as technologies for building and enhancing gameplay features such as character movement and opponent behavior.

Getting Started with GameplayKit

GameplayKit covers many aspects of game design and development. For deeper discussions of the game design patterns you can leverage with GameplayKit, along with tutorials that illustrate building games with GameplayKit features, see GameplayKit Programming Guide.

To experiment with GameplayKit in action, see these sample code projects:

Topics

Entities and Components

State Machines

Spatial Partitioning

Strategists

Decision Trees

Pathfinding

Agents, Goals, and Behaviors

Obstacles

Procedural Noise

Randomization

Rule Systems

Xcode and SpriteKit Integration

Reference

Classes