Created
October 9, 2013 23:20
-
-
Save kennycason/6910248 to your computer and use it in GitHub Desktop.
haskell prob
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data GameState = GameState { map :: [[Int]], timer :: Timer } | |
data GameSprites = GameSprites { sprites :: Surface, samus :: Surface} | |
newGame :: IO (GameState, GameSprites) | |
newGame = do | |
samus <- loadBMP "img/samus.bmp" | |
sprites <- loadBMP "img/spritesheet.bmp" | |
map <- [[]] | |
timer <- start defaultTimer | |
return (GameState map timer, GameSprites sprites samus) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment