ITalent.Games.Tiled 1.0.2

dotnet add package ITalent.Games.Tiled --version 1.0.2
                    
NuGet\Install-Package ITalent.Games.Tiled -Version 1.0.2
                    
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="ITalent.Games.Tiled" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ITalent.Games.Tiled" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ITalent.Games.Tiled" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ITalent.Games.Tiled --version 1.0.2
                    
#r "nuget: ITalent.Games.Tiled, 1.0.2"
                    
#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.
#:package ITalent.Games.Tiled@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ITalent.Games.Tiled&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ITalent.Games.Tiled&version=1.0.2
                    
Install as a Cake Tool

ITalent.Games.Tiled

Setup

  • Create a console app
  • Reference this package
  • Edit the project file, and change Exe to WinExe, if you don't want a console window to open:
- <OutputType>Exe</OutputType>
+ <OutputType>WinExe</OutputType>
  • Apply the template code below

Program.cs

using OpenTK.Mathematics;
using OpenTK.Windowing.Common;
using OpenTK.Windowing.Desktop;

namespace MyGameProject;

public static class Program
{
  private static void Main()
  {
    var nativeWindowSettings = new NativeWindowSettings()
    {
      ClientSize = new Vector2i(800, 600),
      Title = "The TiledGame Template",
      // This is needed to run on macos
      Flags = ContextFlags.ForwardCompatible,
      Vsync = VSyncMode.On
    };
    using (var window = new MyGame(GameWindowSettings.Default, nativeWindowSettings))
    {
      window.Run();
    }
  }
}

MyGame.cs

using OpenTK.Windowing.Desktop;
using ITalent.Games.Tiled;

namespace MyGameProject;

internal class MyGame(GameWindowSettings gameWindowSettings, NativeWindowSettings nativeWindowSettings)
    : TileGameWindow(gameWindowSettings, nativeWindowSettings)
{
  private MapRenderLayer _blockLayer = new(MyGameTileSettings);

  protected override void OnLoad()
  {
    AddLayer(_blockLayer);
    base.OnLoad();
  }

  static MapRenderLayerSettings MyGameTileSettings => new()
  {
    TilesetPath = "Resources/tileset.png",
    TilesetSize = new(4, 4),
    TilemapSize = new(9, 9),
    Align = AlignmentMode.CenterContain
  };
}

Resources\tileset.png

This example assumes a tileset image is present, which has 4x4 tiles in it. For examples, see the ITalent.Games repository.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 102 9/11/2026
1.0.1 92 9/11/2026
1.0.0 88 9/11/2026