Allow for more changable terminal screen colors

This commit is contained in:
2024-11-17 10:18:04 +00:00
parent a0431ff9a3
commit e7ea5d7fa9
11 changed files with 232 additions and 207 deletions
+2 -2
View File
@@ -2,6 +2,7 @@ module Dodge.Machine.Update (
updateMachine,
) where
import Dodge.Terminal.Color
import Control.Monad
import Data.List (partition)
import Data.Maybe
@@ -34,8 +35,7 @@ terminalScreenGlow :: Machine -> World -> World
terminalScreenGlow mc w = fromMaybe w $ do
tid <- mc ^? mcMounts . ix ObTerminal
term <- w ^? cWorld . lWorld . terminals . ix tid
guard (_tmStatus term /= TerminalOff)
let V4 x y z _ = _tmScreenColor term
V4 x y z _ <- termScreenColor term
return $
w & cWorld . lWorld . tempLightSources
.:~ TLS