summaryrefslogtreecommitdiffstats
path: root/src/Game.hs
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-03-15 14:46:14 +0100
committerMatthias Schiffer <matthias@gamezock.de>2010-03-15 14:46:14 +0100
commit90b8d87e02bfb0d1d3d10c3b824df8fd8ce37a9f (patch)
tree35f51096c034e881198447671896535dafcdbe69 /src/Game.hs
parente85dc20a4869c91faa3869695d2d19bfe07f9abc (diff)
downloadhtanks-90b8d87e02bfb0d1d3d10c3b824df8fd8ce37a9f.tar
htanks-90b8d87e02bfb0d1d3d10c3b824df8fd8ce37a9f.zip
Reorganized code to add Debris class
Diffstat (limited to 'src/Game.hs')
-rw-r--r--src/Game.hs17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/Game.hs b/src/Game.hs
index 248287b..651918c 100644
--- a/src/Game.hs
+++ b/src/Game.hs
@@ -1,13 +1,13 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-module Game ( Tank(..)
- , Bullet(..)
+module Game ( Bullet(..)
, GameState(..)
, Game
, runGame
) where
import Level
+import Tank
import Texture
import Control.Monad
@@ -16,19 +16,6 @@ import Data.Fixed
import qualified Data.Map as M
-data Tank = Tank
- { tankX :: !Micro
- , tankY :: !Micro
- , tankDir :: !Micro
- , tankAim :: !Micro
- , tankSpeed :: !Micro
- , tankTurnspeed :: !Micro
- , tankMoving :: !Bool
- , tankBulletSpeed :: !Micro
- , tankBulletBounces :: !Int
- , tankBulletsLeft :: !Int
- } deriving Show
-
data Bullet = Bullet
{ bulletX :: !Micro
, bulletY :: !Micro