RogueSharp NuGet Package

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:
* Map and cell classes now have generic versions that are easier to inherit from.
* Weighted pool class for randomly picking items.
* Pathfinder class caches graph and dijkstra result for speedier performance with multiple lookups.
* Added Map.GetCellsInRectangle method. (Thanks to Andre Odendaal)
* Improved performance of Pathfinder class up to 75x
* Added A* shortest path algorithm
Breaking changes:
* Bug fix - Change Map.Create to be generic, returning the same map type as the creation strategy's map.

(Thanks to Andre Odendaal)
* Bug fix - Update Map Save and Restore methods to track IsExplored status. (Thanks to Andre Odendaal)
* Map.Initialize is virtual so that it can be overridden in derived classes
* Map.Clone is now virtual and generic so that it can be overridden in derived classes.
* Removed IsInFov from Map and Cell classes (use FieldOfView class instead)
* Removed IsExplored from Map and Cell classes.




Got any RogueSharp Question?





Info

Version: 5.0.0-pre4
Author(s): Faron Bracy
Last Update: Monday, May 25, 2020
.NET Fiddle: Online Example
Project Url: https://github.com/FaronBracy/RogueSharp
NuGet Url: https://www.nuget.org/packages/RogueSharp


Install
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


Tags



STATS

must-have-score

1.4

avg-downloads-per-day

5

days-since-last-release

1672