Restructuring, #9
This commit is contained in:
parent
2055ef234e
commit
dab6fadad4
41 changed files with 941 additions and 680 deletions
20
lib/RPGEngine/Render/Paused.hs
Normal file
20
lib/RPGEngine/Render/Paused.hs
Normal file
|
@ -0,0 +1,20 @@
|
|||
module RPGEngine.Render.Paused
|
||||
( renderPaused
|
||||
) where
|
||||
|
||||
import RPGEngine.Render.Core ( Renderer, overlay )
|
||||
|
||||
import RPGEngine.Data ( Game )
|
||||
import Graphics.Gloss ( pictures, scale, text )
|
||||
import RPGEngine.Render.Playing ( renderPlaying )
|
||||
import Graphics.Gloss.Data.Picture (color)
|
||||
import Graphics.Gloss.Data.Color (white)
|
||||
|
||||
------------------------------ Exported ------------------------------
|
||||
|
||||
renderPaused :: Renderer Game
|
||||
renderPaused g = pictures [renderPlaying g, pause]
|
||||
where pause = pictures [
|
||||
overlay,
|
||||
color white $ scale 0.5 0.5 $ text "[Press any key to continue]"
|
||||
]
|
Reference in a new issue