Add menu option to start new game from seed, uses system clipboard

This commit is contained in:
2021-12-09 14:36:26 +00:00
parent eeda4f3e39
commit 24a0cc289f
13 changed files with 101 additions and 54 deletions
+6 -4
View File
@@ -3,7 +3,9 @@ module Main
) where
import Loop
import Dodge.Data
import Dodge.LevelGen
import Dodge.StartNewGame
import Dodge.Initialisation
--import Dodge.LevelGen
import Dodge.Update
import Dodge.Event
import Dodge.Render
@@ -55,9 +57,9 @@ firstWorldLoad theConfig = do
SDL.cursorVisible $= False
theKeyConfig <- loadKeyConfig
pdata <- doPreload >>= applyWorldConfig theConfig
w <- generateWorldFromSeed 0
return $ Universe
{_uvWorld = w
-- w <- generateWorldFromSeed 0
return $ startNewGame $ Universe
{_uvWorld = initialWorld
,_config = theConfig
,_preloadData = pdata
,_menuLayers = []