This commit is contained in:
2022-02-13 17:29:32 +00:00
parent eba1713895
commit 40f1d987cb
21 changed files with 109 additions and 171 deletions
+2 -3
View File
@@ -23,7 +23,6 @@ import Geometry
import Picture
import Shape
import ShapePicture
import Dodge.Picture
import LensHelp
import Data.List
@@ -214,8 +213,8 @@ mvLaser phasev pos dir w pt
notseen ws (_,Right wl) = not $ any (\w' -> _wlID w' == _wlID wl) ws
notseen _ _ = True
pic = setLayer 1 $ pictures
[ setDepth 19 . color (brightX 0 0.5 yellow) $ lineOfThickness 20 (pos:ps)
, setDepth 19.5 . color (brightX 10 1 yellow) $ lineOfThickness 3 (pos:ps)
[ setDepth 19 . color (brightX 0 0.5 yellow) $ thickLine 20 (pos:ps)
, setDepth 19.5 . color (brightX 10 1 yellow) $ thickLine 3 (pos:ps)
]
aTractorBeam :: Item -> Creature -> World -> World
+1 -2
View File
@@ -6,7 +6,6 @@ module Dodge.Item.Weapon.Decoration
) where
import Dodge.Data
import Dodge.Picture.Layer
import Dodge.Picture
import Geometry.Data
import Picture
@@ -26,4 +25,4 @@ makeLaserScope p ep relFrac = Particle
}
where
lineAlphaThick a w =
color (withAlpha a $ mixColors relFrac (1-relFrac) red green) $ lineOfThickness w [p,ep]
color (withAlpha a $ mixColors relFrac (1-relFrac) red green) $ thickLine w [p,ep]