Add file, fix lamp doDamage space leak
This commit is contained in:
@@ -45,7 +45,10 @@ customMouseCursor w =
|
||||
$ pictures [ line [(-5,0),(5,0)] , line [(0,-5),(0,5)] ]
|
||||
|
||||
testPic :: World -> [Picture]
|
||||
testPic w = [blank]
|
||||
testPic w =
|
||||
[ setDepth (-1) . translate 0 0.8
|
||||
. scale 0.001 0.001 . text . show . length . IM.elems . IM.filter ( (== 3) . _crRad ) $ _creatures w
|
||||
]
|
||||
|
||||
crDraw :: Creature -> Picture
|
||||
crDraw c = uncurry translate (_crPos c) $ rotate (_crDir c) (_crPict c c)
|
||||
|
||||
Reference in New Issue
Block a user