Move towards adding in pulse laser "rifle" (like UT shock rifle)

This commit is contained in:
2025-07-25 09:12:04 +01:00
parent ff3699e6cb
commit 190068737d
17 changed files with 750 additions and 628 deletions
+1
View File
@@ -39,6 +39,7 @@ data ItemSF -- Structural Function
| MapperSF
| LaserWeaponSF
| CapacitorSF
| PulseBallSF
deriving (Eq, Ord, Show, Read)
type CItem = (Item, ItemSF)
+1
View File
@@ -117,6 +117,7 @@ data LWorld = LWorld
, _shockwaves :: [Shockwave]
, _lasers :: [Laser]
, _pulseLasers :: [PulseLaser]
, _pulseBalls :: IM.IntMap PulseBall
, _linearShockwaves :: IM.IntMap LinearShockwave
, _tractorBeams :: [TractorBeam]
, _walls :: IM.IntMap Wall
+3
View File
@@ -21,8 +21,11 @@ data PulseBall = PulseBall
{ _pbVel :: Point2
, _pbPos :: Point2
, _pbTimer :: Int
, _pbID :: Int
}
deriving (Eq, Ord, Show, Read) --Generic, Flat)
makeLenses ''PulseLaser
makeLenses ''PulseBall
deriveJSON defaultOptions ''PulseLaser
deriveJSON defaultOptions ''PulseBall
+1
View File
@@ -38,6 +38,7 @@ data SoundOrigin
| Tap Int
| EBSound Int
| DamageHitSound Int
| PBSound Int
deriving (Eq, Ord, Show, Read) --Generic, Flat)