Skip to content

Architecture

The kit follows a ScriptableObject-based architecture. If you are not familiar with it, we recommend watching the following videos:

At the core of this architecture is the idea of using Scriptable Objects to manage all (or most) of the data in your game. Scriptable Objects are Unity assets that live in your project and can be used to store any kind of data. While they are most commonly used for configuration data, we can actually exploit them to represent many other gameplay concepts. In the particular case of Single-Player CCG Kit, we use scriptable object for the following things:

  • Cards.
  • Decks of cards.
  • Players.
  • Enemies.
  • Player/enemy variables (HP, shield, etc.)
  • Game events.

The main advantage of this architecture is that it provides a very clean and flexible approach to managing the complexity of a game codebase and exposes many concepts to your designers on the Unity editor-side that would normally require programmer intervention.