starting to make grahics
This commit is contained in:
parent
34ae1d4de4
commit
7a58d222ad
3 changed files with 7 additions and 5 deletions
|
@ -13,6 +13,7 @@ import Data.IORef
|
||||||
import qualified Data.Matrix as M
|
import qualified Data.Matrix as M
|
||||||
|
|
||||||
import Graphics.Vty
|
import Graphics.Vty
|
||||||
|
import Graphics.Vty.CrossPlatform
|
||||||
|
|
||||||
import Options.Applicative
|
import Options.Applicative
|
||||||
|
|
||||||
|
@ -58,9 +59,8 @@ main = do
|
||||||
playerWizard <- head <$> STM.atomically (STM.flushTQueue queue)
|
playerWizard <- head <$> STM.atomically (STM.flushTQueue queue)
|
||||||
putStrLn $ "received wizard: " <> show (initWizard playerWizard)
|
putStrLn $ "received wizard: " <> show (initWizard playerWizard)
|
||||||
|
|
||||||
-- cfg <- standardIOConfig
|
vty <- mkVty defaultConfig
|
||||||
-- vty <- mkVty cfg
|
hideCursor (outputIface vty)
|
||||||
-- hideCursor (outputIface vty)
|
|
||||||
|
|
||||||
-- shut down graphical interface for now
|
-- shut down graphical interface for now
|
||||||
-- shutdown vty
|
-- shutdown vty
|
||||||
|
@ -79,7 +79,8 @@ main = do
|
||||||
)
|
)
|
||||||
initRead
|
initRead
|
||||||
initState
|
initState
|
||||||
-- shutdown vty
|
showCursor (outputIface vty)
|
||||||
|
shutdown vty
|
||||||
putStrLn "Shutting down client…"
|
putStrLn "Shutting down client…"
|
||||||
-- threadDelay 100
|
-- threadDelay 100
|
||||||
-- close sock
|
-- close sock
|
||||||
|
|
|
@ -8,7 +8,7 @@ import Control.Concurrent
|
||||||
|
|
||||||
import qualified Control.Concurrent.STM as STM
|
import qualified Control.Concurrent.STM as STM
|
||||||
|
|
||||||
import Control.Exception.Base
|
import Control.Exception
|
||||||
|
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ executable wizard-wipeout-client
|
||||||
, uuid
|
, uuid
|
||||||
, vector
|
, vector
|
||||||
, vty
|
, vty
|
||||||
|
, vty-crossplatform
|
||||||
, wizard-wipeout
|
, wizard-wipeout
|
||||||
hs-source-dirs: src-client
|
hs-source-dirs: src-client
|
||||||
default-language: GHC2021
|
default-language: GHC2021
|
||||||
|
|
Loading…
Reference in a new issue