Progressively reveal the map to the player

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.
This commit is contained in:
Griffin Smith 2019-09-15 13:00:28 -04:00
parent 6678ac986c
commit 58fce2ec19
17 changed files with 454 additions and 52 deletions

View file

@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: a79caccff8895730c394c19244f068830759636d17f55f3b6d1d8a9ebe43ecdd
-- hash: 86b7d3047b95fc65f4c6489a21e8c89883981c8c5bd552b5ea83aaf70de8a7cf
name: xanthous
version: 0.1.0.0
@ -34,6 +34,7 @@ library
Xanthous.Command
Xanthous.Data
Xanthous.Data.EntityMap
Xanthous.Data.EntityMap.Graphics
Xanthous.Entities
Xanthous.Entities.Arbitrary
Xanthous.Entities.Character
@ -55,6 +56,7 @@ library
Xanthous.Random
Xanthous.Resource
Xanthous.Util
Xanthous.Util.Graphics
other-modules:
Paths_xanthous
hs-source-dirs:
@ -102,6 +104,7 @@ executable xanthous
Xanthous.Command
Xanthous.Data
Xanthous.Data.EntityMap
Xanthous.Data.EntityMap.Graphics
Xanthous.Entities
Xanthous.Entities.Arbitrary
Xanthous.Entities.Character
@ -123,6 +126,7 @@ executable xanthous
Xanthous.Random
Xanthous.Resource
Xanthous.Util
Xanthous.Util.Graphics
Paths_xanthous
hs-source-dirs:
src
@ -174,6 +178,7 @@ test-suite test
Xanthous.Generators.UtilSpec
Xanthous.MessageSpec
Xanthous.OrphansSpec
Xanthous.Util.GraphicsSpec
Paths_xanthous
hs-source-dirs:
test