feat(grfn/xanthous): Add a help panel
Change-Id: I581a37df0a20fa54878da4446007dbe677e057da Reviewed-on: https://cl.tvl.fyi/c/depot/+/5444 Autosubmit: grfn <grfn@gws.fyi> Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
79aceaec17
commit
3c294fbabd
6 changed files with 100 additions and 7 deletions
|
|
@ -135,6 +135,9 @@ handleNoPromptEvent _ = continue
|
|||
|
||||
handleCommand :: Command -> AppM (Next GameState)
|
||||
handleCommand Quit = confirm_ ["quit", "confirm"] (liftIO exitSuccess) >> continue
|
||||
|
||||
handleCommand Help = showPanel HelpPanel >> continue
|
||||
|
||||
handleCommand (Move dir) = do
|
||||
newPos <- uses characterPosition $ move dir
|
||||
collisionAt newPos >>= \case
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue