summaryrefslogtreecommitdiffstats
path: root/HTanks.hs
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-02-25 03:16:44 +0100
committerMatthias Schiffer <matthias@gamezock.de>2010-02-25 03:16:44 +0100
commitc23e63e66786410f53b9460a6456b7c893d2a234 (patch)
tree213a204572b94a9a864d9da9109a9f2a3f95a6ae /HTanks.hs
parentb4c3367c63459607f0919e77998d5405634e2003 (diff)
downloadhtanks-c23e63e66786410f53b9460a6456b7c893d2a234.tar
htanks-c23e63e66786410f53b9460a6456b7c893d2a234.zip
Cache textures in game state
Diffstat (limited to 'HTanks.hs')
-rw-r--r--HTanks.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/HTanks.hs b/HTanks.hs
index 27b5755..d0dab4a 100644
--- a/HTanks.hs
+++ b/HTanks.hs
@@ -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