NuGet Package RogueSharp

A .NET Standard class library providing map generation, path-finding, and field-of-view utilities frequently used in roguelikes or 2D tile based games.

Inspired by libtcod

New features:
* Optimized cave map generator (Thanks to James Neal)
* Optimized DijkstraShortestPath.FindPath method (Thanks to flend for this update)
* Multiple new "Try" methods which return null instead of throwing exceptions
* Diagonal paths can be found by using new constructors on GoalMap and PathFinder
* Map.GetCellsInCircle and Map.GetBorderCellsInCircle to get cells within a circular radius
Breaking changes:
* Bug fix (4.2.0) - EdgeWeightedDigraph updates NumberOfEdges property when new edge is added
* Bug fix (4.1.0) - selecting border cells along edge of map no longer selects center cell
* Point and Rectangle classes are now structs (Thanks to James Neal)
* Updated all appropriate references to Cell with ICell (Thanks to Courtney Strachan)
* Map.ComputeFov and Map.AppendFov both return a ReadonlyCollection of ICell instead void
* The Path returned from PathFinder.ShortestPath now includes the source cell in the returned Path
* Map.GetCellsInArea was renamed to Map.GetCellsInSquare
* Map.GetCellsInRadius was renamed to Map.GetCellsInDiamond.


Version: 4.2.0
Author(s): Faron Bracy
Last Update: Tuesday, January 1, 2019
.NET Fiddle: Online Example
Project Url:
NuGet Url:

Install-Package RogueSharp
dotnet add package RogueSharp
paket add RogueSharp
RogueSharp Download (Unzip the "nupkg" after downloading)

.NETFramework 4.0
  • No dependencies.
.NETStandard 1.0