Add muzzle flare
This commit is contained in:
@@ -703,8 +703,8 @@ boosterGun = defaultGun
|
||||
|
||||
aTeslaArc :: Creature -> World -> World
|
||||
aTeslaArc cr w
|
||||
= teslaGunFlashAt (pos +.+ 5 *.* unitVectorAtAngle dir)
|
||||
$ set randGen g w
|
||||
= -- teslaGunFlashAt (pos +.+ 5 *.* unitVectorAtAngle dir)
|
||||
set randGen g w
|
||||
& particles %~ (makeTeslaArcAt col pos dir :)
|
||||
where
|
||||
pos = _crPos cr +.+ (_crRad cr +1) *.* unitVectorAtAngle dir
|
||||
|
||||
Reference in New Issue
Block a user