about summary refs log tree commit diff
path: root/src/Xanthous/Game/Prompt.hs
AgeCommit message (Collapse)AuthorFilesLines
2019-10-06 Allow eating edible itemsGriffin Smith1-20/+59
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-29 Gormlaks attack backGriffin Smith1-0/+10
When gormlaks see the character, they step towards them and attack dealing 1 damage when adjacent. Characters have hitpoints now, displayed at the bottom of the game screen, and when the game is over they die.
2019-09-20 Add doors and an open commandGriffin Smith1-1/+6
Add a Door entity and an Open command, which necessitated supporting the direction prompt. Currently nothing actually puts doors on the map, which puts a slight damper on actually testing this out.
2019-09-20 Add the beginnings of a prompt systemGriffin Smith1-0/+117
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