From 5c5aa14a3dcb5c172eaf8d2236b41020c8e92051 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 3 Jan 2020 12:04:08 -0500 Subject: Don't render moving entities that aren't visible When the character walks away from or around the corner from entities that move such that they're no longer visible, stop rendering them. Still render static entities like walls, doors, and items though. This prevents entities walking into a "revealed position" after the character's left being visible despite not being in a line of sight any more. --- src/Xanthous/Game.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Xanthous/Game.hs') diff --git a/src/Xanthous/Game.hs b/src/Xanthous/Game.hs index 14b8230218ab..094858618dbf 100644 --- a/src/Xanthous/Game.hs +++ b/src/Xanthous/Game.hs @@ -14,6 +14,7 @@ module Xanthous.Game , character , characterPosition , updateCharacterVision + , characterVisiblePositions -- * Messages , MessageHistory(..) -- cgit 1.4.1