about summary refs log tree commit diff
path: root/src/Xanthous/Util.hs
AgeCommit message (Collapse)AuthorFilesLines
2019-10-06 Allow eating edible itemsGriffin Smith1-0/+10
Add menu support to the prompt system, and an "Eat" command that prompts for an item to eat and eats the item the character specifies, restoring an amount of hitpoints configurable via the item raw type.
2019-09-28 Implement the start of creature AIGriffin Smith1-0/+1
Add a Brain class, which determines for an entity the set of moves it makes every step of the game, and begin to implement that for gormlaks. The idea here is that every step of the game, a gormlak will move towards the furthest-away wall it can see.
2019-09-15 Progressively reveal the map to the playerGriffin Smith1-0/+149
As the character walks around the map, progressively reveal the entities on the map to them, using an algorithm based on well known circle-rasterizing and line-rasterizing algorithms to calculate lines of sight that are potentially obscured by walls.
2019-09-07 Add cellular-automata cave generatorGriffin Smith1-1/+33
Add a cellular-automata-based cave level generator, plus an optparse-applicative-based CLI for invoking level generators in general.
2019-08-31 Add entities, and allow walking aroundGriffin Smith1-0/+14
Add support for entities via a port of the EntityMap type, and implement command support starting at basic hjkl.