Remove separate wall color, should be handled by material type
This commit is contained in:
@@ -27,11 +27,12 @@ shootShatter _ cr w =
|
||||
shatterWall :: World -> Point2 -> Point2 -> Point2 -> Wall -> World
|
||||
shatterWall w sp ep p wl =
|
||||
w
|
||||
& makeDebris (_wlMaterial wl) (_wlColor wl) p
|
||||
-- & makeDebris (_wlMaterial wl) (_wlColor wl) p
|
||||
& makeDebris (_wlMaterial wl) p
|
||||
& makeDebrisDirected
|
||||
(pi / 2)
|
||||
(argV $ vNormal $ uncurry (-) $ _wlLine wl)
|
||||
(_wlMaterial wl)
|
||||
(_wlColor wl)
|
||||
-- (_wlColor wl)
|
||||
p
|
||||
& damageWall (Shattering 1000 p (ep - sp)) wl
|
||||
|
||||
Reference in New Issue
Block a user