about summary refs log tree commit diff
path: root/src/Xanthous/Data.hs
AgeCommit message (Collapse)AuthorFilesLines
2019-09-29 Gormlaks attack backGriffin Smith1-1/+62
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-28 Implement the start of creature AIGriffin Smith1-0/+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 doors and an open commandGriffin Smith1-0/+3
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-15 Progressively reveal the map to the playerGriffin Smith1-0/+14
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-13 Place the chacracter in the level at startup timeGriffin Smith1-0/+4
Randomly select a position in the largest contiguous region of the generated level in which to place the character at startup time.
2019-09-09 Convert generated levels to wallsGriffin Smith1-27/+60
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-07 Add cellular-automata cave generatorGriffin Smith1-0/+21
Add a cellular-automata-based cave level generator, plus an optparse-applicative-based CLI for invoking level generators in general.
2019-09-02 Add raws, loaded statically from a folderGriffin Smith1-6/+42
Add raw types with support for both creatures and items, loaded statically from a "raws" folder just like in the Rust version.
2019-08-31 Add entities, and allow walking aroundGriffin Smith1-0/+118
Add support for entities via a port of the EntityMap type, and implement command support starting at basic hjkl.