Add wall dust when destroying a block

This commit is contained in:
2021-11-17 11:48:20 +00:00
parent 9db091597d
commit 602d91d3a8
4 changed files with 23 additions and 6 deletions
+12
View File
@@ -0,0 +1,12 @@
module Dodge.Wall.Dust where
import Dodge.Data
import Dodge.WorldEvent.Cloud
import Geometry
import Geometry.Vector3D
import Control.Lens
wlDustAt :: Wall -> Point2 -> World -> World
wlDustAt wl p = smokeCloudAt dustcol 20 200 1 (addZ 20 p)
where
dustcol = _wlColor wl & _4 .~ 1