parent
becd305e01
commit
5cc96cbdba
10 changed files with 53 additions and 21 deletions
|
@ -4,12 +4,19 @@ module RPGEngine.Render.Win
|
|||
|
||||
import RPGEngine.Render.Core (Renderer)
|
||||
|
||||
import RPGEngine.Config (uizoom, textColor)
|
||||
import RPGEngine.Data (State)
|
||||
|
||||
import Graphics.Gloss (text)
|
||||
import Graphics.Gloss (text, scale, color, translate)
|
||||
|
||||
------------------------------ Constants -----------------------------
|
||||
|
||||
message :: String
|
||||
message = "You win! Press any key to return to the menu."
|
||||
|
||||
------------------------------ Exported ------------------------------
|
||||
|
||||
-- TODO
|
||||
renderWin :: Renderer State
|
||||
renderWin _ = text "You win!\nPress any key to return to the menu."
|
||||
renderWin _ = scaled $ center $ color textColor $ text message
|
||||
where scaled = scale uizoom uizoom
|
||||
center = translate (-1500) 0
|
Reference in a new issue