Cleanup, add spark to bullet turret hit
This commit is contained in:
@@ -11,8 +11,9 @@ import Dodge.Data
|
||||
import Dodge.Base
|
||||
import Geometry.Data
|
||||
import Picture
|
||||
import LensHelp
|
||||
|
||||
import Control.Lens
|
||||
--import Control.Lens
|
||||
import System.Random
|
||||
|
||||
makeCloudAt
|
||||
@@ -23,18 +24,16 @@ makeCloudAt
|
||||
-> Point3 -- start position
|
||||
-> World
|
||||
-> World
|
||||
makeCloudAt drawFunc rad t alt p = clouds %~ (theCloud :)
|
||||
where
|
||||
theCloud = Cloud
|
||||
{ _clPos = p
|
||||
, _clVel = V3 0 0 0
|
||||
, _clPict = drawFunc
|
||||
, _clRad = rad
|
||||
, _clAlt = alt
|
||||
, _clTimer = t
|
||||
, _clType = SmokeCloud
|
||||
, _clEffect = const id
|
||||
}
|
||||
makeCloudAt drawFunc rad t alt p = clouds .:~ Cloud
|
||||
{ _clPos = p
|
||||
, _clVel = V3 0 0 0
|
||||
, _clPict = drawFunc
|
||||
, _clRad = rad
|
||||
, _clAlt = alt
|
||||
, _clTimer = t
|
||||
, _clType = SmokeCloud
|
||||
, _clEffect = const id
|
||||
}
|
||||
|
||||
smokeCloudAt
|
||||
:: Color
|
||||
|
||||
Reference in New Issue
Block a user