Reorganized code to add Debris class

This commit is contained in:
Matthias Schiffer 2010-03-15 14:46:14 +01:00
parent e85dc20a48
commit 90b8d87e02
11 changed files with 57 additions and 25 deletions

View file

@ -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
}
{ levelWidth = 14
, levelHeight = 8
, debris = []
}