Separate and reify laser beams

This commit is contained in:
2022-07-23 23:26:39 +01:00
parent 262ac237cd
commit 7563441154
13 changed files with 102 additions and 72 deletions
+21
View File
@@ -0,0 +1,21 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE StrictData #-}
module Dodge.Data.Laser
where
import Color
import Geometry.Data
import Control.Lens
data LaserStart = LaserStart
{ _lpDamage :: Int
, _lpPhaseV :: Float
, _lpPos :: Point2
, _lpDir :: Float
, _lpColor :: Color
}
data Laser = Laser
{ _laColor :: Color
, _laPoints :: [Point2]
}
makeLenses ''Laser
makeLenses ''LaserStart