about summary refs log tree commit diff
path: root/src/Xanthous/Generators
AgeCommit message (Collapse)AuthorFilesLines
2019-09-21 Implement combatGriffin Smith1-15/+28
Put a bunch of gormlaks randomly on the level, and implement combat via damaging those gormlaks by one point.
2019-09-20 Add doors and an open commandGriffin Smith2-2/+2
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-19 Add items and inventoryGriffin Smith1-8/+32
Add a new "Item" entity, which pulls from the previously-existent ItemType raw, and add a "PickUp" command which takes the (currently *only*) item off the ground and puts it into the inventory.
2019-09-15 Remove all but the largest region in cavesGriffin Smith2-4/+12
When generating cave levels, remove all but the largest contiguous region from the resulting level.
2019-09-15 Progressively reveal the map to the playerGriffin Smith1-8/+0
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-14 Fill the outer edges of generated levelsGriffin Smith2-1/+13
To avoid the character being able to go OOB. This is something we had in the Rust version but I hadn't ported over yet
2019-09-13 Place the chacracter in the level at startup timeGriffin Smith3-11/+116
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-0/+29
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 Smith2-0/+182
Add a cellular-automata-based cave level generator, plus an optparse-applicative-based CLI for invoking level generators in general.