Zen.Assets 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Zen.Assets --version 0.1.0                
NuGet\Install-Package Zen.Assets -Version 0.1.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="Zen.Assets" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Zen.Assets --version 0.1.0                
#r "nuget: Zen.Assets, 0.1.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.
// Install Zen.Assets as a Cake Addin
#addin nuget:?package=Zen.Assets&version=0.1.0

// Install Zen.Assets as a Cake Tool
#tool nuget:?package=Zen.Assets&version=0.1.0                

Zen.Assets

This is a helper project for a MonoGame project to store game assets. It can be used to store and retreieve SpriteFonts, Textures, TextureAtlases, Sounds and Animations.

Example

To use: (for resources compiled to xnb's)

// assumes Arial-12.xnb is in .\Content\Fonts folder
AssetsManager.Instance.AddSpriteFont("Arial-12", "Fonts\\Arial-12");
SpriteFont font = AssetsManager.Instance.GetSpriteFont("Arial-12");

// assumes cursor.xnb is in .\Content\Textures folder
AssetsManager.Instance.AddTexture("Cursor", "Textures\\cursor");
Texture2D texture = AssetsManager.Instance.GetTexture("Cursor");

(for "native" resources, i.e. ttf, png, etc.)

// this will load everything under Fonts (ttf), Textures (png) and TextureAtlases (atlasspec) folders,
// bake them and store them in the AssetsManager
ContentLoader.LoadContent(
    $@"{Directory.GetCurrentDirectory()}\Content\",
    "Fonts",
    "Textures",
    "TextureAtlases",
    graphicsDevice);
    
// assumes Arial.ttf is in .\Content\Fonts folder
SpriteFont font = AssetsManager.Instance.GetSpriteFont("Arial");

Developer

Written by Greg Moller (greg.moller@gmail.com)

License

Licensed under the MIT License. See the LICENCE file for more information.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Zen.Assets:

Package Downloads
Zen.GuiControls

A project for user controls for use with MonoGame.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.4 1,106 11/23/2020
0.1.3 1,142 11/5/2020
0.1.1 668 10/31/2020
0.1.0 566 10/29/2020