April 2021
Beginner to intermediate
506 pages
11h 57m
English
The first component you’ll make is a health component. The health component is a way to track the number of health points an entity has remaining.
To make a component using the GameplayKit framework, you need to subclass the GKComponent superclass (which is another way of referring to the base class or parent class).
Each component represents a single “trait” or “ability” that you can add to an entity, and an entity represents one of your game objects. The nice thing about components is that you can reuse and add them to any type of entity. For example, you can create a single health component that both your player and monsters can share.
In the Project Navigator, below the Extensions ...
Read now
Unlock full access