Improve debris
This commit is contained in:
@@ -59,7 +59,7 @@ shootShatter it cr w = maybe w (uncurry $ shatterWall w sp ep) $ collidePointWal
|
||||
ep = sp +.+ 200 *.* unitVectorAtAngle dir
|
||||
|
||||
shatterWall :: World -> Point2 -> Point2 -> Point2 -> Wall -> World
|
||||
shatterWall w sp ep p wl = w & makeDebris StoneBlock p
|
||||
& damageWall (Damage SHATTERING 100 sp p ep NoDamageEffect) wl
|
||||
& damageWall (Damage SHATTERING 100 sp p ep NoDamageEffect) wl
|
||||
& damageWall (Damage SHATTERING 100 sp p ep NoDamageEffect) wl
|
||||
shatterWall w sp ep p wl = w
|
||||
& makeDebris StoneBlock p
|
||||
& makeDebrisDirected StoneBlock p (argV $ vNormal $ uncurry (-.-) $ _wlLine wl)
|
||||
& damageWall (Damage SHATTERING 1000 sp p ep NoDamageEffect) wl
|
||||
|
||||
Reference in New Issue
Block a user