The Setup
- Open up your favorite development environment.
- Create a new C# project targeting .NET Core 3.1.
- Using NuGet package manager search for Chroma or install it using
nuget install Chroma
The Execution
Create a class that will inherit from Chroma.Game
class. This example will call it GameCore.cs
:
using Chroma;
namespace Example
{
internal class GameCore : Game
{
}
}
Modify your Program.cs
file to run the game:
using Chroma;
namespace Example
{
internal static class Program
{
internal static void Main(string[] args)
{
new GameCore().Run();
}
}
}