Replace buggy circle seg intersection with a simpler test

This commit is contained in:
2024-12-26 21:53:18 +00:00
parent 91ba6ee148
commit 0ef28c132e
29 changed files with 528 additions and 332 deletions
+3 -2
View File
@@ -148,8 +148,9 @@ data HeldItemType
| TESLAGUN
| LASER
| TRACTORGUN
| LAUNCHER
| LAUNCHERX {_xNum :: Int}
| RLAUNCHER
| RLAUNCHERX {_xNum :: Int}
| GLAUNCHER
| POISONSPRAYER
| SHATTERGUN
| TORCH
+2 -1
View File
@@ -140,7 +140,8 @@ data MuzzleEffect
| MuzzleLaser
| MuzzleTesla
| MuzzleTractor
| MuzzleLauncher
| MuzzleRLauncher
| MuzzleGLauncher
| MuzzleNozzle
{ _nzPressure :: GenFloat
, _nzMaxWalkAngle :: Float
@@ -37,6 +37,7 @@ data ProjectileUpdate
,_pjuDetonatorID :: Maybe (NewInt ItmInt)
,_pjuScreenID :: Maybe (NewInt ItmInt)
}
| ApplyGravityPU
deriving (Show, Eq, Ord, Read) --Generic, Flat)
data AmmoType
+1 -1
View File
@@ -14,7 +14,6 @@ import Geometry.Data
data Projectile
= Shell
{ _prjPos :: Point2
, _prjStartPos :: Point2
, _prjVel :: Point2
, _prjAcc :: Point2
, _prjDir :: Float
@@ -24,6 +23,7 @@ data Projectile
, _prjPayload :: Payload
, _prjTimer :: Int
, _prjZ :: Float
, _prjZVel :: Float
, _prjUpdates :: [ProjectileUpdate]
}
deriving (Eq, Ord, Show, Read) --Generic, Flat)