Free · MIT licensed · version 3.1
Build 2D games once in C#, and ship them on Windows and Linux. Documented so your AI coding assistant can build with it too.
C# · .NET 10 · SDL2 · Windows · Linux
> dotnet new console -n MyGame > cd MyGame > dotnet add package ASGL2 > dotnet run
01 / CROSS-PLATFORM
The same game, the same code and the same assets run on both systems. Only the SDL2 libraries arrive differently.
Windows
dotnet run --project PlatformTest
Linux (Ubuntu, Debian, Mint…)
sudo apt install libsdl2-2.0-0 libsdl2-ttf-2.0-0 libsdl2-mixer-2.0-0 dotnet run --project PlatformTest
02 / INSIDE THE LIBRARY
03 / AI-ASSISTED DEVELOPMENT
Claude, Copilot, Cursor or any coding assistant is only as good as what it can read. ASGL2 keeps everything it needs in plain text next to the code.
Try it: a prompt for your assistant
Read AGENTS.md and llms.txt. In PlatformTest, add a double jump with its own sound. Update the demo's README, then build ASGL2.sln and tell me how to test it.
// made with ASGL2
Rooms painted in the Map Editor, two-player input, streamed music and one self-contained build per system. See the game →
04 / GET STARTED
Add the package to a .NET 10 project, then install the SDL2 libraries for your system (the package readme lists them). The docs site has a first game, every guide and the full reference.
dotnet add package ASGL2