Add PlasmaBalls

This commit is contained in:
2026-03-17 10:45:58 +00:00
parent 0ca3bf33c9
commit 902d8e0c00
9 changed files with 245 additions and 172 deletions
+4 -4
View File
@@ -893,10 +893,10 @@ shootPulseBall (p, q) w =
w
& cWorld . lWorld . pulseBalls . at i
?~ PulseBall
{ _pbPos = p ^. _xy
, _pbVel = 3.5 * unitVectorAtAngle (Q.qToAng q)
, _pbTimer = 200
, _pbID = i
{ _pzbPos = p ^. _xy
, _pzbVel = 3.5 * unitVectorAtAngle (Q.qToAng q)
, _pzbTimer = 200
, _pzbID = i
}
& soundStart (PBSound i) (p ^. _xy) energyReleaseS Nothing
where