Formerly Skinney/elm-warrior. Search finds this package by either name.
You can use this module to build your own maps!
Describes how large a map should be in rows and columns.
Initialize an empty map of a given size where every tile is empty. Use the the following with functions to make the map more interesting.
Sets a description for the map which will be displayed above the map when the game is played.
Marks a coordinate on the map where a playable warrior will spawn.
Marks a coordinate on the map where the player needs to go to advance to the next map.
Turns every tile between two coordinates into wall tiles.
Places a villain on the specific coordinate of the map, using the supplied function to know what to do each turn. You can find pre-made turn functions in the Warrior.Npc module.
Places an item into the inventory of the last villain added with the withNpc function.
Places an item on the map which can be picked up by warriors.
A list of points where warriors can spawn.
Return a list of all non-playable characters along with their turn functions.
A map in progress.