greenstack / spite-framework

The Spite Framework is a C# library meant to simplify designing and implementing turn-based gameplay by providing some boilerplate code.
MIT License
6 stars 0 forks source link
battle gameplay spite-framework turns

Spite Framework

.NET .NET Framework

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.

Installation

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.

Visual Studio/Dotnet

If you're using Visual Studio/dotnet, you will need to clone the repo as a git submodule then add a reference to Spite.

Using Unity

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:

  1. From a local folder.
  2. From a local tarball file These methods aren't recommended because it may cause problems when using a VCS.

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.