This repository has been archived on 2023-06-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2022FuncProg-project3-RPGEn.../lib/RPGEngine/Render/Paused.hs

20 lines
No EOL
601 B
Haskell

module RPGEngine.Render.Paused
( renderPaused
) where
import RPGEngine.Render.Core (Renderer, overlay)
import RPGEngine.Data (State(..))
import RPGEngine.Render.Playing (renderPlaying)
import Graphics.Gloss (pictures, white, color, Color(..), text, scale)
------------------------------ Exported ------------------------------
renderPaused :: Renderer State
renderPaused state = pictures [playing, pause]
where playing = renderPlaying $ continue state
pause = pictures [
overlay,
color white $ scale 0.5 0.5 $ text "[Press any key to continue]"
]