Separate Clouds and Dust
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module Dodge.WorldEvent.Cloud (makeCloudAt) where
|
||||
module Dodge.WorldEvent.Cloud (makeCloudAt,makeDustAt) where
|
||||
|
||||
import Dodge.Data.World
|
||||
import Geometry.Data
|
||||
@@ -13,3 +13,13 @@ makeCloudAt ct t p =
|
||||
, _clTimer = t
|
||||
, _clType = ct
|
||||
}
|
||||
|
||||
makeDustAt :: Material -> Int -> Point3 -> World -> World
|
||||
makeDustAt ct t p =
|
||||
cWorld . lWorld . dusts
|
||||
.:~ Dust
|
||||
{ _dsPos = p
|
||||
, _dsVel = V3 0 0 0
|
||||
, _dsTimer = t
|
||||
, _dsType = ct
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user