Separate placement spot from placement type
This commit is contained in:
@@ -16,7 +16,7 @@ import Data.Either
|
||||
damageSensor
|
||||
:: (DamageType -> Either Int Int) -- Left gets sensed, Right does damage
|
||||
-> Point2 -> Float -> Placement
|
||||
damageSensor damF p r = Placement (PS p r $ PutLS theLS)
|
||||
damageSensor damF p r = Placement (PS p r) ( PutLS theLS)
|
||||
$ \lsid -> jsps p r $ PutMachine blue (reverse $ square wdth) defaultMachine
|
||||
{ _mcDraw = sensorSPic
|
||||
, _mcUpdate = sensorUpdate damF
|
||||
|
||||
Reference in New Issue
Block a user