FosterFramework 0.1.18-alpha
dotnet add package FosterFramework --version 0.1.18-alpha
NuGet\Install-Package FosterFramework -Version 0.1.18-alpha
<PackageReference Include="FosterFramework" Version="0.1.18-alpha" />
paket add FosterFramework --version 0.1.18-alpha
#r "nuget: FosterFramework, 0.1.18-alpha"
// Install FosterFramework as a Cake Addin #addin nuget:?package=FosterFramework&version=0.1.18-alpha&prerelease // Install FosterFramework as a Cake Tool #tool nuget:?package=FosterFramework&version=0.1.18-alpha&prerelease
<p align="center"> <img width="480" src="Foster.png" alt="Foster logo"> </p>
Foster
Foster is a small cross-platform 2D 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 8.0 and C# 12
- SDL2 is the only external dependency, which is required by the Platform library. By default this is statically compiled.
Platform Library
- The Platform library is a C library that implements native methods required to run the application.
- By default, it is currently being built for 64-bit Linux, MacOS, and Windows through Github Actions.
- To add support for more platforms, you need to build the Platform library and then include it in Foster.Framework.csproj
Rendering
- Implemented in OpenGL for Linux/Mac/Windows and D3D11 for Windows.
- Separate Shaders are required depending on which rendering API you're targetting.
- Planning to replace the rendering implementation with SDL3 GPU when it is complete.
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on FosterFramework:
Package | Downloads |
---|---|
FosterFramework.Extensions.Scenes
Package Description |
|
PineFramework
Foster's extension adding more features |
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.1.18-alpha | 3,069 | 2/6/2024 |
0.1.17-alpha | 217 | 2/5/2024 |
0.1.16-alpha | 223 | 2/3/2024 |
0.1.15-alpha | 361 | 2/1/2024 |
0.1.14-alpha | 515 | 1/30/2024 |
0.1.13-alpha | 127 | 1/29/2024 |
0.1.12-alpha | 70 | 1/26/2024 |
0.1.11-alpha | 304 | 1/23/2024 |
0.1.9-alpha | 77 | 1/18/2024 |
0.1.8-alpha | 66 | 1/18/2024 |
0.1.7-alpha | 91 | 1/11/2024 |
0.1.6-alpha | 225 | 11/16/2023 |
0.1.5-alpha | 102 | 10/29/2023 |
0.1.4-alpha | 152 | 10/6/2023 |
0.1.3-alpha | 75 | 10/3/2023 |
0.1.2-alpha | 82 | 9/23/2023 |
0.1.1-alpha | 80 | 9/22/2023 |
0.1.0-alpha | 88 | 9/20/2023 |