diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-03-04 08:00:50 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-03-04 08:00:50 +0000 |
commit | f5325148fab8e6420a7533289bf529f3ec6d5b30 (patch) | |
tree | b53a49ae432fbc0c528c33470d48b757184bdb8f /src/Game.hs | |
parent | d20d50ccb379c26c9e331be1245b21c278dd379c (diff) | |
download | space-plat-hs-f5325148fab8e6420a7533289bf529f3ec6d5b30.tar.gz space-plat-hs-f5325148fab8e6420a7533289bf529f3ec6d5b30.zip |
Show key or button depending on the controls
Diffstat (limited to 'src/Game.hs')
-rw-r--r-- | src/Game.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Game.hs b/src/Game.hs index e93269e..2f9988d 100644 --- a/src/Game.hs +++ b/src/Game.hs @@ -218,7 +218,10 @@ gameOverLoop e = do BF.renderText renderer font 109 116 "Press to retry" button <- S.get sprites "ui" - S.render renderer button 143 113 0 1 + let buttonOrKey = case ctl.joyId of + Just _ -> 1 + Nothing -> 2 + S.render renderer button 143 113 0 buttonOrKey BF.renderText renderer font 112 132 "(or ESC to quit)" pure e |