Safe Haskell | None |
---|---|
Language | Haskell2010 |
Main
Synopsis
- window :: Display
- loadJuicyPNGS :: [FilePath] -> [IO (Maybe Picture)]
- listFromIO :: (Traversable t, Monad m) => t (m a) -> m (t a)
- loadSprites :: IO Sprites
- saveLevel :: FilePath -> MapInfo -> IO ()
- loadAllSequentialLevelsFrom :: Int -> IO [MapInfo]
- loadLevel :: FilePath -> IO (Maybe MapInfo)
- loadLevelIfUnloaded :: MetaInfo -> IO (MetaInfo, MapInfo)
- data GameState
- main :: IO ()
- getLevelPath :: Int -> FilePath
- addSoundToRequests :: String -> MetaInfo -> MetaInfo
Documentation
Load multiple PNGs with gloss-juicy
listFromIO :: (Traversable t, Monad m) => t (m a) -> m (t a) #
loadSprites :: IO Sprites #
Load all sprites from files into Sprites.
Save level by path.
Arguments
:: Int | Starting index |
-> IO [MapInfo] | List of levels from starting sindex until levels cannot be loaded. |
Load levels sequentially from some index. If a level cannot be loaded, the procedure is stopped and level list is returned.
Try load the level only if preloaded levels have been exhausted. If level cannot be loaded, load empty map. Return new level and updated metaInfo.
Game state that represents if the game is in MapEditor or in Play Mode.
Constructors
GameOn GameState | |
EditorOn MapEditorState |
Update sound requests by adding one sounds, and return new MetaInfo