Cleanup creature update slightly, add show instance for impulses
This commit is contained in:
@@ -257,7 +257,7 @@ updateArc = createNewArc
|
||||
|
||||
shootLaser :: Item -> Creature -> World -> World
|
||||
shootLaser it cr = (instantParticles .:~ lasRayAt phasev pos dir)
|
||||
. flareCircleAt yellow 0.8 (pos `v2z` 25)
|
||||
. flareCircleAt yellow 0.8 (pos `v2z` 20)
|
||||
where
|
||||
pos = _crPos cr +.+ aimingMuzzlePos cr it *.* unitVectorAtAngle dir
|
||||
dir = _crDir cr
|
||||
|
||||
Reference in New Issue
Block a user