KappaDuck.Quack.Runtimes 1.0.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package KappaDuck.Quack.Runtimes --version 1.0.0
                    
NuGet\Install-Package KappaDuck.Quack.Runtimes -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KappaDuck.Quack.Runtimes" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KappaDuck.Quack.Runtimes" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="KappaDuck.Quack.Runtimes" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KappaDuck.Quack.Runtimes --version 1.0.0
                    
#r "nuget: KappaDuck.Quack.Runtimes, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KappaDuck.Quack.Runtimes@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KappaDuck.Quack.Runtimes&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=KappaDuck.Quack.Runtimes&version=1.0.0
                    
Install as a Cake Tool

Quack! 🦆 Static Badge NuGet Version

A modern, fast and flexible .NET game framework using SDL3

Overview

Quack is a modern, simple and fast game framework for building game and interactive applications, built on top of SDL3 and its extensions (SDL_image, SDL_mixer, SDL_ttf). It targets .NET 11+ desktop, providing a clean and flexible API that hides the complexity of SDL.

Features

  • 2D rendering via the Renderer API and 3D rendering via the GPU API
  • Window and display management
  • Audio management
  • Input & events
  • Image and font loading
  • Native UI integration
  • Native AOT

Usage

Using the easy way with Game class

using KappaDuck.Quack;
using KappaDuck.Quack.Graphics;
using KappaDuck.Quack.Graphics.Rendering;

internal sealed class Pong : Game
{
    private Sprite _ball = null!;

    public Pong() : base("Pong", 1280, 720)
    {
    }

    protected override void Initialize()
    {
        Texture texture = Assets.Load("ball.png");
        _ball = new Sprite(texture);
    }

    protected override void Update(GameTime time)
    {
        // move things by time.Delta
    }

    protected override void Draw(GameTime time)
    {
        Renderer.Clear(Colors.Black);

        Renderer.Draw(_ball);
        Renderer.Present();
    }
}

// Program.cs
using Pong game = new();
game.Run();

Using your own loop

using KappaDuck.Quack;
using KappaDuck.Quack.Events;
using KappaDuck.Quack.Graphics;
using KappaDuck.Quack.Graphics.Rendering;
using KappaDuck.Quack.Input;
using KappaDuck.Quack.Windowing;

using Window window = new("Pong", 1280, 720);
using Renderer renderer = new(window);

using Texture texture = Texture.Load(renderer, "ball.png");
Sprite ball = new(texture);

while (window.IsOpen)
{
    while (window.Poll(out Event e))
    {
        if (e is QuitRequested or KeyPressed { Key: Key.Escape })
        {
            window.Close();
            return;
        }
    }

    renderer.Clear(Colors.Black);

    renderer.Draw(ball);
    renderer.Present();
}

More examples and documentation can be found at Documentation

The public API is still a prototype. Expect to have frequent changes.

Installation

Install Quack! via NuGet:

dotnet package add KappaDuck.Quack -v 0.5.0

or via your .csproj:

<PackageReference Include="KappaDuck.Quack" Version="0.5.0">

You can also install via the NuGet Package Manager in Visual Studio or JetBrains Rider.

Quack! is still in early development. Expect breaking changes and frequent updates. Always use the latest version for the best experience.

Beta packages

Pre-release versions are published to NuGet.org alongside stable releases. To install the latest beta:

dotnet package add KappaDuck.Quack --prerelease

Documentation

Full API documentation and samples are available:

Cross-platform support

Quack supports Windows and Linux thanks to SDL3's abstraction layer.

The framework may have platform-specific implementations or limitations depending on the underlying SDL support. Using platform-specific features will surface a compiler warning indicating the code may not be portable across all targets.

Android and WebAssembly (WASM) support is planned for a future milestone. macOS and iOS are not in scope.

SDL compatibility

SDL3 native libraries are bundled via KappaDuck.Quack.Runtimes. The table below shows the SDL versions included in each release of both packages.

Quack Runtimes SDL3 SDL_image SDL_ttf SDL_mixer
source 1.0.0 3.4.16 3.4.6 3.2.2 3.2.4

Development & Sandbox

You can build Quack from source and experiment quickly using the included sandbox project.

Prerequisites

Setup

1. Clone the repository

git clone https://github.com/KappaDuck/quack.git
cd quack

2. Build and test

dotnet build
dotnet test

Tests run headless by default, so they work on a machine without a display. To watch the windows appear, pick a driver:

dotnet test -- --test-parameter video-driver=default

default lets the platform choose, the way a real application does. You can also name a driver directly, such as x11 or windows. An SDL_VIDEODRIVER environment variable that is already set always wins.

3. Restore the local tools (only needed to build the documentation)

dotnet tool restore
dotnet build src/Quack --configuration Release
dotnet docfx docs/docfx.json --serve

The API reference is generated from the compiled assembly and its XML documentation, so the build has to run first.

Repository layout

Path Contents
src/Quack The framework
src/Quack.Generators Source generators shipped inside the package
src/Quack.Sandbox Scratch project for experimenting
tests Unit tests and generator snapshot tests
benchmarks BenchmarkDotNet benchmarks
samples Runnable examples
docs Documentation site
runtimes Native runtimes packaging

Quack.Sandbox

The repository includes a dedicated sandbox project at src/Quack.Sandbox/ for experimenting without touching the main source. It references KappaDuck.Quack directly so changes are reflected immediately.

Everything you write there is ignored by git. If the folder holds no source at all, the first build drops a starter Program.cs in for you, so a fresh clone always compiles.

dotnet run --project src/Quack.Sandbox

or simply run it in your IDE.

Benchmarks

dotnet run -c Release --project benchmarks -- --filter '*'

AI disclosure

AI tools assisted with two things in this project: documentation (XML doc comments, README, CONTRIBUTING guidelines) and design exploration (prototyping API shapes, exploring implementation approaches, and thinking through architecture decisions). Everything is reviewed by the author and no generated-AI code will be in the code source.

Credits

Built with inspiration from

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated