Skip to content

About

2d game framework

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

kajar.framework

kajar.framework

Build status GitHub release

A lean, extensible 2D game framework for .NET.

Objectives

kajarlabs.Framework is built around predictable low-allocation performance, first-class NativeAOT compatibility, and clean cross-platform abstractions on top of .NET and SDL3.

  • NativeAOT & trimming first — libraries are IsAotCompatible with compile-time source generation ([Cached]/[Resolved] DI, [LoggerMessage]) instead of runtime reflection.
  • Cross-platform SDL3 & GPU rendering — windowing and hardware-accelerated rendering across Vulkan, Direct3D 12, and Metal behind a managed .NET API.
  • Composable scene & testing — hierarchical 2D scene graph (Drawable, Container, Box, Sprite), reactive bindables, unified input/key bindings, and deterministic headless testing via HeadlessGameHost.

Requirements

Building

Open kajar-framework.slnx in your IDE or build from the command line:

dotnet build
dotnet test

You can also run any sample directly from samples/, for example:

dotnet run --project samples/interactive-input

Verification

The full verification suite (formatting, Release build, xUnit v3 tests, NativeAOT smoke publish/run, and NuGet packing) can be run with ./scripts/check.ps1 or ./scripts/check.sh.

Contributing

Contributions can be made via pull requests targeting develop.

If you're unsure of what you can help with, check out the list of open issues. Please open an issue before starting work on new features or architectural changes, and make sure ./scripts/check.ps1 (or ./scripts/check.sh) passes before submitting.

License

This framework is licensed under the MIT license. Please see the license file for more information.

About

2d game framework

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages