about summary refs log tree commit diff
path: root/src/Xanthous/Monad.hs
AgeCommit message (Collapse)AuthorFilesLines
2019-10-06 Allow eating edible itemsGriffin Smith1-10/+27
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-1/+2
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-20 Add the beginnings of a prompt systemGriffin Smith1-32/+7
Add the beginnings of a generic prompt system, with exclusive support atm for string prompts, and test it out by asking the character for their name at startup
2019-09-09 Convert generated levels to wallsGriffin Smith1-0/+4
Add support for converting generated levels to walls, and merge one into the entity map at the beginning of the game. There's nothing here that guarantees the character ends up *inside* the level though (they almost always don't) so that'll have to be slotted into the level generation process.
2019-09-02 Link up messages to the overall gameGriffin Smith1-0/+58
Add a "say" function for saying messages within an app monad to the user, and link everything up to display them and track their history