FosterFramework 0.3.0

dotnet add package FosterFramework --version 0.3.0
                    
NuGet\Install-Package FosterFramework -Version 0.3.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="FosterFramework" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FosterFramework" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="FosterFramework" />
                    
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 FosterFramework --version 0.3.0
                    
#r "nuget: FosterFramework, 0.3.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 FosterFramework@0.3.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=FosterFramework&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=FosterFramework&version=0.3.0
                    
Install as a Cake Tool

<p align="center"> <img width="480" src="Foster.png" alt="Foster logo"> </p>

Foster

Foster is a small cross-platform 2D-focused game framework in C#.

★ very work in progress! likely to have frequent, breaking changes! please use at your own risk! ★

To use the framework either

  • add a refence to the NuGet package,
  • or clone this repository and add a reference to Foster/Framework/Foster.Framework.csproj.

There is a Samples repo which contains various demos and examples that can help you get started.

Check out Discussons or Discord to get involved.

Dependencies

  • dotnet 10.0 and C# 14
  • SDL3, which has prebuilt binaries for various platforms through Github Actions.

Rendering

  • Rendering is implemented using SDL_GPU.
  • Shaders must follow the SDL_GPU shader resource requirements.
  • You can specify which Graphics Device to use when you run your Application.
  • You must provide shaders for the resulting Renderer (ex. SPIR-V for Vulkan, etc). There are built-in shaders for 2D rendering so this only matters if you write custom shaders.

Notes

  • Taken a lot of inspiration from other Frameworks and APIs, namely FNA.
  • This is the second iteration of this library. The first can be found here.
  • Contributions are welcome! However, anything that adds external dependencies or complicates the build process will not be accepted.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on FosterFramework:

Package Downloads
JackdawEngine

A simple 2D game library/engine.

PineFramework

Foster's extension adding more features https://github.com/FosterFramework/Foster

FosterImGUI

An ImGUI wrapper for the Foster Framework!

FosterFramework.Extensions.Scenes

Package Description

Ugtk.Foster

A library containing different universal utils for game development

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on FosterFramework:

Repository Stars
EXOK/Celeste64
A game made by the Celeste developers in a week(ish, closer to 2)
Version Downloads Last Updated
0.3.0 150 1/3/2026
0.2.2 1,432 5/22/2025
0.2.1 494 2/3/2025
0.2.0 322 1/28/2025
0.1.21-alpha 138 1/14/2025
0.1.19-alpha 140 1/14/2025
0.1.18-alpha 5,434 2/6/2024
0.1.17-alpha 326 2/5/2024
0.1.16-alpha 320 2/3/2024
0.1.15-alpha 461 2/1/2024
0.1.14-alpha 630 1/30/2024
0.1.13-alpha 234 1/29/2024
0.1.12-alpha 149 1/26/2024
0.1.11-alpha 394 1/23/2024
0.1.9-alpha 177 1/18/2024
0.1.8-alpha 180 1/18/2024
0.1.7-alpha 186 1/11/2024
0.1.6-alpha 315 11/16/2023
0.1.5-alpha 200 10/29/2023
0.1.4-alpha 251 10/6/2023
0.1.3-alpha 176 10/3/2023
0.1.2-alpha 183 9/23/2023
0.1.1-alpha 187 9/22/2023
0.1.0-alpha 192 9/20/2023