about summary refs log tree commit diff
path: root/src/Xanthous/Entities
AgeCommit message (Collapse)AuthorFilesLines
2019-09-15 Scroll the viewport around the characterGriffin Smith1-1/+11
Scroll the viewport so that the character is never less than 5 away from the edge of the screen. This was super easy, thanks Brick!
2019-09-15 Progressively reveal the map to the playerGriffin Smith3-2/+11
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-09 Convert generated levels to wallsGriffin Smith6-39/+81
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 Put a test gormlak on the screenGriffin Smith2-1/+33
Implement a concrete "Creature" entity, and place one on the screen at the game startup for testing. This revealed a bug with drawing when getting the maximum entity position, but that appears to be fixed now (yay)
2019-09-02 Add raws, loaded statically from a folderGriffin Smith3-0/+102
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 Smith2-0/+55
Add support for entities via a port of the EntityMap type, and implement command support starting at basic hjkl.