diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-03-15 14:46:14 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-03-15 14:46:14 +0100 |
commit | 90b8d87e02bfb0d1d3d10c3b824df8fd8ce37a9f (patch) | |
tree | 35f51096c034e881198447671896535dafcdbe69 /src/Level.hs | |
parent | e85dc20a4869c91faa3869695d2d19bfe07f9abc (diff) | |
download | htanks-90b8d87e02bfb0d1d3d10c3b824df8fd8ce37a9f.tar htanks-90b8d87e02bfb0d1d3d10c3b824df8fd8ce37a9f.zip |
Reorganized code to add Debris class
Diffstat (limited to 'src/Level.hs')
-rw-r--r-- | src/Level.hs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Level.hs b/src/Level.hs index c99a4b5..152e15d 100644 --- a/src/Level.hs +++ b/src/Level.hs @@ -4,15 +4,19 @@ module Level ( Level(..) import Data.List +import Debris + data Level = Level { levelWidth :: !Int , levelHeight :: !Int + , debris :: ![SomeDebris] } deriving (Show) testLevel :: Level testLevel = Level - { levelWidth = 10 - , levelHeight = 10 - }
\ No newline at end of file + { levelWidth = 14 + , levelHeight = 8 + , debris = [] + } |