Commit before changing links

This commit is contained in:
2021-11-11 22:51:02 +00:00
parent 8c45a02e46
commit d63c2ac943
11 changed files with 40 additions and 33 deletions
+4 -1
View File
@@ -18,6 +18,7 @@ import Dodge.Base.Window
import Dodge.SoundLogic
import Control.Lens
import System.Random
optionMenu :: ScreenLayer
optionMenu = OptionScreen
@@ -159,8 +160,10 @@ pauseMenuOptions =
startNewGame :: World -> Maybe World
startNewGame w = Just $ w
& menuLayers .~ [WaitScreen (const "GENERATING...") 1]
& sideEffects .~ const (firstWorld <&> keyConfig .~ _keyConfig w <&> config .~ _config w
& sideEffects .~ const (worldFromSeed i <&> keyConfig .~ _keyConfig w <&> config .~ _config w
<&> preloadData .~ _preloadData w) -- this kills save games etc...
where
i = fst $ random (_randGen w)
-- | hacky
scodeToChar :: Scancode -> Char