Novolis.Rendering.TwoD
2026.1.1.75
dotnet add package Novolis.Rendering.TwoD --version 2026.1.1.75
NuGet\Install-Package Novolis.Rendering.TwoD -Version 2026.1.1.75
<PackageReference Include="Novolis.Rendering.TwoD" Version="2026.1.1.75" />
<PackageVersion Include="Novolis.Rendering.TwoD" Version="2026.1.1.75" />
<PackageReference Include="Novolis.Rendering.TwoD" />
paket add Novolis.Rendering.TwoD --version 2026.1.1.75
#r "nuget: Novolis.Rendering.TwoD, 2026.1.1.75"
#:package Novolis.Rendering.TwoD@2026.1.1.75
#addin nuget:?package=Novolis.Rendering.TwoD&version=2026.1.1.75
#tool nuget:?package=Novolis.Rendering.TwoD&version=2026.1.1.75
Novolis.Rendering.TwoD
Host-neutral 2D scene model for orthographic platformers (Mario-style): backgrounds, sprite animation, static polygons with colliders, HUD, and menus.
Install
dotnet add package Novolis.Rendering.TwoD
Prerequisites: .NET 10 SDK (net10.0).
Quick start
var scene = new TwoDScene();
var texture = scene.Textures.Register(pixels, width, height, "hero.png");
var sheet = TwoDScenePrimitives.CreateSpriteSheet(scene, texture, 32, 32);
var run = TwoDAnimationClip.FromRow(sheet, row: 0, startColumn: 0, count: 4);
scene.AnimatedSprites.Add(new TwoDAnimatedSprite { Clip = run, Transform = { Position = Vector3PlanarExtensions.Xz(4, 2) } });
scene.AddPlatform(0, 0, 20, 1, Rgba32.Chartreuse);
scene.Hud.AddText("MARIO 000000", screenX: 16, screenY: 16);
scene.Menus.Push(new TwoDMenuScreen("SUPER NOVOLIS", [
new TwoDMenuItem("1 PLAYER", tag: "start"),
new TwoDMenuItem("OPTIONS", tag: "options"),
]));
Draw by tessellating into Math and submitting through a Silk host:
using Novolis.Rendering.TwoD;
using Novolis.Silk;
var scene = new TwoDScene();
SilkGame.Run("Platformer", 800, 600, frame =>
{
scene.Update(frame.DeltaSeconds);
frame.Submit(scene.Tessellate(frame.Width, frame.Height));
});
Packages
| Package | Role |
|---|---|
Novolis.Rendering.TwoD |
Scene, collision, HUD, menus, tessellate to PlanarDrawList |
Novolis.Silk |
GLFW / OpenGL host (Submit / Blit) — compose in apps and labs |
In-memory layered grids (tests / debug)
Rasterize a scene to per-layer DenseGrid<Rgba32> without a GPU:
var grids = scene.ToLayeredGrids(TwoDGridRasterOptions.WorldCells(
cellSize: 1f,
worldBounds: new TwoDWorldBounds(0f, 0f, 40f, 40f)));
var ascii = grids.ToAscii(TwoDDrawLayer.World);
var merged = grids.CompositedToAscii();
| Mode | Cell meaning |
|---|---|
WorldCells |
One cell per world XZ slab (CellSize world units) |
ScreenPixels |
One cell per framebuffer pixel |
Layers: Background, World, Foreground, Hud, Menu, plus Composited in draw order.
Conventions
- World space uses BCL
Vector3on the XZ plane (Y = 0). - Screen-space HUD/menu uses pixel coordinates (origin top-left).
- Textures are registered in
TwoDTextureRegistry; PNG loading is provided by the Silk backend.
| Product | Versions 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. |
-
net10.0
- Novolis.Math.Arrays (>= 2026.1.1.57)
- Novolis.Math.Geometry (>= 2026.1.1.57)
- Novolis.Math.Topology (>= 2026.1.1.57)
- StbImageSharp (>= 2.30.16)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Novolis.Rendering.TwoD:
| Package | Downloads |
|---|---|
|
Novolis.Avalonia.Rendering
Avalonia hosts for Novolis.Rendering.TwoD (OpenGL) and CPU RGBA frames. |
|
|
Novolis.Rendering.Backends.TwoD.Silk
Silk.NET OpenGL backend for Novolis.Rendering.TwoD. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.1.1.75 | 0 | 10/5/2026 |
| 2026.1.1.74 | 0 | 10/5/2026 |
| 2026.1.1.73 | 0 | 10/5/2026 |
| 2026.1.1.72 | 56 | 10/4/2026 |
| 2026.1.1.71 | 155 | 10/1/2026 |
| 2026.1.1.70 | 98 | 9/30/2026 |