Reify press plates
This commit is contained in:
@@ -31,11 +31,8 @@ telRoomLev _ = do
|
||||
{ _ppPict = setDepth 0.5 . color red $ polygon ppFootprint
|
||||
, _ppPos = V2 0 0
|
||||
, _ppRot = 0
|
||||
, _ppEvent = levelReset
|
||||
, _ppEvent = PPLevelReset
|
||||
, _ppID = 0
|
||||
, _ppText = "NEW LEVEL"
|
||||
}
|
||||
ppFootprint = reverse $ rectNSWE 20 (-20) (-20) 20
|
||||
levelReset pp w
|
||||
| dist (_crPos $ you w) (_ppPos pp) < 20 = makeExplosionAt (_ppPos pp) w
|
||||
| otherwise = w
|
||||
|
||||
Reference in New Issue
Block a user