Load window size from config into world
This commit is contained in:
+3
-2
@@ -31,13 +31,14 @@ setupLoop :: String
|
||||
-> Int
|
||||
-> IO (PreloadData a)
|
||||
-> (PreloadData a -> IO ())
|
||||
-> world
|
||||
-> IO world
|
||||
-> (PreloadData a -> world -> IO (PreloadData a))
|
||||
-> (world -> Event -> Maybe world)
|
||||
-> (world -> Maybe world)
|
||||
-> IO ()
|
||||
setupLoop wName xSize ySize
|
||||
customInit initCleanup startWorld sideEffects eventFn worldFn = do
|
||||
customInit initCleanup ioStartWorld sideEffects eventFn worldFn = do
|
||||
startWorld <- ioStartWorld
|
||||
initializeAll
|
||||
bracket (createWindow (T.pack wName) (winConfig xSize ySize)) destroyWindow
|
||||
(\window ->
|
||||
|
||||
Reference in New Issue
Block a user