The Spite Framework is a C# library meant to simplify designing and implementing turn-based gameplay. The hope is that through the Spite Framework, developers can quickly develop all kinds of turn-based games, from RPGs to board games. To do this, Spite is centered on a few core design pillars:
Examples can be found in the Spite Framework Examples repository.
How you integrate Spite to your project will depend on what technology you're using.
If you clone Spite into your project, you can set your branch to be whichever version of the framework you like. For the most up-to-date version, use the active -dev
branch.
If you're using Visual Studio/dotnet, you will need to clone the repo as a git submodule then add a reference to Spite.
In order to use Spite with Unity, you'll need to include it as a package.
The recommended method of including Spite is by by cloning the repo to the
Packages
folder of your Unity project. If you're using git as your version
control, you can do this by cloning it as a git submodule.
You can also use Unity's package manager to include Spite from another location on your computer:
Because we don't want Unity's .meta
files to be included in other projects that
use Spite, those are ignored, making including Spite through Unity's package manager
as a git repo is, unfortunately, currently impossible.
If you don't intend to use Unity's Package manager (which is the recommended route), you can also build the Spite DLL and include it into your project.