summaryrefslogtreecommitdiffstats
path: root/HTanks.hs
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-03-08 20:16:51 +0100
committerMatthias Schiffer <matthias@gamezock.de>2010-03-08 20:16:51 +0100
commit996313bd8994d4536492ec8000f7a92fb015433e (patch)
tree3c41f2ccf5504016b8353d277fac970b6115a26a /HTanks.hs
parentd8cf601ac2aa36e299e5d50e246f73497409a110 (diff)
downloadhtanks-996313bd8994d4536492ec8000f7a92fb015433e.tar
htanks-996313bd8994d4536492ec8000f7a92fb015433e.zip
Re-corrected coordinates... and new tank texture
Diffstat (limited to 'HTanks.hs')
-rw-r--r--HTanks.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/HTanks.hs b/HTanks.hs
index 9ff45fe..c75aba2 100644
--- a/HTanks.hs
+++ b/HTanks.hs
@@ -39,7 +39,8 @@ runMain st (MainT a) = runStateT a st
main :: IO ()
main = do
- gl <- initGL $ glxDriver 10 10
+ let theLevel = testLevel
+ gl <- initGL $ glxDriver (levelWidth theLevel) (levelHeight theLevel)
when (initialized gl) $ do
currentTime <- getCurrentTime
@@ -47,8 +48,8 @@ main = do
[ SomePlayer $ DefaultPlayer S.empty 0 0
, SomePlayer $ CPUPlayer 0
]}
- gameState = GameState {level = testLevel, tanks = [ Tank 5.0 5.0 0 0 2 360 False
- , Tank 5.0 3.5 0 0 2 360 False
+ gameState = GameState {level = theLevel, tanks = [ Tank 5.0 5.0 0 0 2 270 False
+ , Tank 5.0 3.5 0 0 2 270 False
], textures = M.empty}
runGame gameState $ do