diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-02-25 03:16:44 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-02-25 03:16:44 +0100 |
commit | c23e63e66786410f53b9460a6456b7c893d2a234 (patch) | |
tree | 213a204572b94a9a864d9da9109a9f2a3f95a6ae /HTanks.hs | |
parent | b4c3367c63459607f0919e77998d5405634e2003 (diff) | |
download | htanks-c23e63e66786410f53b9460a6456b7c893d2a234.tar htanks-c23e63e66786410f53b9460a6456b7c893d2a234.zip |
Cache textures in game state
Diffstat (limited to 'HTanks.hs')
-rw-r--r-- | HTanks.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -11,6 +11,7 @@ import GLX import Control.Concurrent (threadDelay) import Control.Monad.State import Data.Maybe +import qualified Data.Map as M import Data.Ratio import qualified Data.Set as S import Data.Time.Clock @@ -39,7 +40,7 @@ main = do when (initialized gl) $ do currentTime <- getCurrentTime let mainState = MainState {run = True, driver = SomeDriver gl, time = currentTime, keyset = S.empty} - gameState = GameState {level = testLevel, tanks = [Tank 0.0 0.0 0 0 2]} + gameState = GameState {level = testLevel, tanks = [Tank 0.0 0.0 0 0 2], textures = M.empty} runGame gameState $ do setup 800 600 |