Data-ify creature drawing (partially)
This commit is contained in:
@@ -31,7 +31,7 @@ barrel :: Creature
|
||||
barrel = defaultInanimate
|
||||
{ _crUpdate = updateBarrel
|
||||
, _crHP = 500
|
||||
, _crPict = picAtCrPos $ setDepth 20 $ pictures
|
||||
, _crType = DrawnCreature $ picAtCrPos $ setDepth 20 $ pictures
|
||||
[ color orange $ circleSolid 10
|
||||
, setDepth 0.049 . color (greyN 0.5) $ circleSolid 8
|
||||
, color (greyN 0.5) $ circleSolid 8
|
||||
@@ -46,7 +46,7 @@ explosiveBarrel :: Creature
|
||||
explosiveBarrel = defaultInanimate
|
||||
{ _crUpdate = updateExpBarrel
|
||||
, _crHP = 400
|
||||
, _crPict = shapeAtCrPos
|
||||
, _crType = DrawnCreature $ shapeAtCrPos
|
||||
. colorSH orange
|
||||
. upperPrismPoly 20
|
||||
$ polyCirc 4 10
|
||||
|
||||
Reference in New Issue
Block a user