Chroma 0.15.0

2D Game Framework which *doesn't* try so hard to resemble XNA

There is a newer version of this package available.
See the version list below for details.
Install-Package Chroma -Version 0.15.0
dotnet add package Chroma --version 0.15.0
<PackageReference Include="Chroma" Version="0.15.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chroma --version 0.15.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Chroma, 0.15.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Chroma as a Cake Addin
#addin nuget:?package=Chroma&version=0.15.0

// Install Chroma as a Cake Tool
#tool nuget:?package=Chroma&version=0.15.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Chroma 0.15

Game

Moved the default scene to its own class.
Constructor now has an optional boolean allowing users to skip the construction of the default scene.

Window

WindowProperties are gone, all its members were moved to Window.
Added MaximumSize and MinimumSize properties.
Renamed Running state boolean to Exists.
CanResize was added to control resizable mode status.
Viewport will now correctly respond to manual resizing.

GraphicsManager

LineThickness moved to GraphicsManager.
Added VerticalSyncMode enum.
EnableVSync was renamed to VerticalSyncMode - defaults to Retrace. Added adaptive vertical sync mode. Multisample antialiasing support was added. Maximum supported mulitsampling precision property was added.

Texture

VirtualCenter was added - changes corresponding to VirtualResolution.
Center was renamed to AbsoluteCenter.

Camera

Changed X/Y/Z coordinates to be floats instead of ints.

Color

Supports construction using HSV components.

KeyModifiers

Added Shift, Ctrl, Alt, and Super wildcard modifiers for when users don't care which side was it.

IContentProvider

Interface now requires content providers to implement RegisterImporter<T>, UnregisterImporter<T> and IsImporterPresent<T>.

FileSystemContentProvider

Implements the above new methods.
Improved reliability of content disposal.

TrueTypeFont

Added UseKerning property.

RenderContext

Scissor uses System.Drawing.Rectangle instead of a custom struct now.
Overloaded Rectangle with two new prototypes allowing to specify either Vector2 and Size or straight up System.Drawing.Rectangle.
DrawString for TTFs will honor the kerning settings now.

AudioManager

Supports loading sounds from a Stream now.

Examples

TextInput: Faux terminal emulator. WindowOperations: How to change window properties.
CustomContentProvider: How to ZIP-based asset loading.
Scissors: How to use drawing scissors.
DrawBatching: How to batch and order the drawing calls.
Clipboard: How to use the clipboard.
EmptyProject: Showing off the default scene.
XboxController: Fixed color swapping
Renamed CustomCursor to CustomHardwareCursor.

Chroma 0.15

Game

Moved the default scene to its own class.
Constructor now has an optional boolean allowing users to skip the construction of the default scene.

Window

WindowProperties are gone, all its members were moved to Window.
Added MaximumSize and MinimumSize properties.
Renamed Running state boolean to Exists.
CanResize was added to control resizable mode status.
Viewport will now correctly respond to manual resizing.

GraphicsManager

LineThickness moved to GraphicsManager.
Added VerticalSyncMode enum.
EnableVSync was renamed to VerticalSyncMode - defaults to Retrace. Added adaptive vertical sync mode. Multisample antialiasing support was added. Maximum supported mulitsampling precision property was added.

Texture

VirtualCenter was added - changes corresponding to VirtualResolution.
Center was renamed to AbsoluteCenter.

Camera

Changed X/Y/Z coordinates to be floats instead of ints.

Color

Supports construction using HSV components.

KeyModifiers

Added Shift, Ctrl, Alt, and Super wildcard modifiers for when users don't care which side was it.

IContentProvider

Interface now requires content providers to implement RegisterImporter<T>, UnregisterImporter<T> and IsImporterPresent<T>.

FileSystemContentProvider

Implements the above new methods.
Improved reliability of content disposal.

TrueTypeFont

Added UseKerning property.

RenderContext

Scissor uses System.Drawing.Rectangle instead of a custom struct now.
Overloaded Rectangle with two new prototypes allowing to specify either Vector2 and Size or straight up System.Drawing.Rectangle.
DrawString for TTFs will honor the kerning settings now.

AudioManager

Supports loading sounds from a Stream now.

Examples

TextInput: Faux terminal emulator. WindowOperations: How to change window properties.
CustomContentProvider: How to ZIP-based asset loading.
Scissors: How to use drawing scissors.
DrawBatching: How to batch and order the drawing calls.
Clipboard: How to use the clipboard.
EmptyProject: Showing off the default scene.
XboxController: Fixed color swapping
Renamed CustomCursor to CustomHardwareCursor.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Chroma:

Package Downloads
Chroma.SabreVGA
VGA emulator for Chroma Framework to aid in creation of text-based games.
ChromaSynth
ChromaSynth is an extension to the Chroma Framework allowing for audio synthesis at runtime.
Chroma.Shine
Various utilities that make life easier but don't quite fit into the core of Chroma Framework.
Chroma.Audio.Sfxr
Sfxr playback engine for Chroma Framework
Chroma.FlexTerm
Flexible terminal emulator based on the SabreVGA text engine.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.43.0 0 7/23/2021
0.42.0 52 7/19/2021
0.41.0 94 6/4/2021
0.40.1 94 3/24/2021
0.40.0 59 3/23/2021
0.39.1 55 3/22/2021
0.39.0 56 3/22/2021
0.38.1 98 3/10/2021
0.38.0 49 3/9/2021
0.37.4 61 3/4/2021
0.37.3 96 2/27/2021
0.37.2 67 2/25/2021
0.37.0 75 2/15/2021
0.36.0 59 2/13/2021
0.35.1 88 2/13/2021
0.35.0 68 2/13/2021
0.34.0 71 2/11/2021
0.33.0 61 2/9/2021
0.32.0 69 2/4/2021
0.31.0 82 1/26/2021
0.30.0 59 1/25/2021
0.29.0 84 1/24/2021
0.28.0 90 1/19/2021
0.27.3 103 12/22/2020
0.27.2 97 12/22/2020
0.27.1 99 12/16/2020
0.27.0 183 12/15/2020
0.26.0 125 11/20/2020
0.25.0 131 11/12/2020
0.24.0 117 11/11/2020
0.23.5 205 11/2/2020
0.23.4 211 11/1/2020
0.23.2 129 11/1/2020
0.23.1 147 11/1/2020
0.23.0 183 11/1/2020
0.22.0 136 10/31/2020
0.21.2 159 10/21/2020
0.21.1 146 10/20/2020
0.21.0 193 10/14/2020
0.20.0 273 9/19/2020
0.19.0 148 9/18/2020
0.18.0 229 9/18/2020
0.17.1 288 7/29/2020
0.17.0 217 7/25/2020
0.16.2 232 7/19/2020
0.16.1 149 7/16/2020
0.16.0 177 7/14/2020
0.15.0 237 7/11/2020
0.14.0-alpha 191 6/30/2020
0.13.0-alpha 154 6/24/2020
0.12.0-alpha 208 6/23/2020
0.11.0-alpha 191 6/22/2020
0.10.0-alpha 174 6/21/2020
0.9.0-alpha 264 5/31/2020
0.8.1-alpha 186 5/28/2020
0.8.0-alpha 166 5/27/2020
0.7.0-alpha 198 5/25/2020
0.6.0-alpha 188 5/25/2020
0.5.0-alpha 187 5/23/2020
0.4.0-alpha 199 5/19/2020
0.3.2-alpha 192 5/16/2020
0.3.1-alpha 192 5/15/2020
0.3.0-alpha 167 5/12/2020
0.2.1-alpha 190 5/11/2020
0.2.0-alpha 172 5/10/2020
0.1.3-alpha 160 5/10/2020
0.1.2-alpha 165 5/10/2020
0.1.1-alpha 197 5/10/2020
0.1.0-alpha 181 5/10/2020
Show less