Safe Haskell | None |
---|---|
Language | Haskell2010 |
DevUtils
Synopsis
- data NewMapInfo = MapInfo {
- enemyBalls :: [EnemyPeg]
- cannonPosition :: Position
- leftWallX :: Float
- rightWallX :: Float
- floorY :: Float
- ceilingY :: Float
- backgroundPictureId :: Int
- backgroundTrackId :: Int
- saveNewLevel :: FilePath -> NewMapInfo -> IO ()
- loadOldLevel :: FilePath -> IO MapInfo
- updateVersion :: MapInfo -> NewMapInfo
- getLevelPath :: Int -> FilePath
- updateMaps :: Int -> Int -> IO ()
Documentation
data NewMapInfo #
Synonym of MapInfo, used for transitioning existing map to new MapInfo format.
Constructors
MapInfo | |
Fields
|
Instances
Arguments
:: FilePath | Level path |
-> NewMapInfo | NewMapInfo to save |
-> IO () |
Save level in new MapInfo format.
Arguments
:: MapInfo | Old format level |
-> NewMapInfo | New format level |
Transition old MapInfo format into new MapInfo format.
getLevelPath :: Int -> FilePath #
Update maps from X to Y: transition from MapInfo to NewMapInfo.