Refactor creature draw, pass World to function
This commit is contained in:
@@ -80,7 +80,7 @@ defaultCreature = Creature
|
||||
, _crVel = (0,0)
|
||||
, _crDir = 0
|
||||
, _crID = 1
|
||||
, _crPict = const $ onLayer CrLayer $ circleSolid 10
|
||||
, _crPict = \_ _ -> onLayer CrLayer $ circleSolid 10
|
||||
, _crUpdate = \ _ f cr -> (f , Just cr)
|
||||
, _crRad = 10
|
||||
, _crMass = 10
|
||||
|
||||
Reference in New Issue
Block a user