Skip to content

JordanMillett/Crux

Repository files navigation

Crux

Hobbyist 3D C# Game Engine using OpenTK

screenshot_1

Built With

Set Up

First you will need to create a GameScene.cs script under Game/Assets/Scenes/ using the following template:

global using OpenTK.Mathematics;
global using System.Text;
global using Crux.Core;

namespace Game.Assets.Scenes;

public class GameScene : Scene
{
    public override void Start()
    {
        
    }

    public override void Update()
    {
        
    }
}

Next open Game/Game.cs and set the GameScene as the active scene.

GameEngine.Link.ActiveScene = new GameScene();

Build Commands

Compile and run:

dotnet run --project Game -c Debug

Publish:

.\publish.bat

Regenerate solution:

dotnet new sln --name OpenTK
dotnet sln OpenTK.sln add (Get-ChildItem -Recurse *.csproj)

Generate and serve DocFX (auto-populate docs/toc.yml):

dotnet script docfx.csx

Generate and serve DocFX (manually):

docfx metadata CruxDocs/docfx.json
docfx CruxDocs/docfx.json --serve

For more information, visit Crux Docs.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Contributors

Languages