Refactor, try to limit dependencies

This commit is contained in:
2022-07-28 00:59:56 +01:00
parent 8aa5c17ab9
commit 160560af5f
418 changed files with 15104 additions and 13342 deletions
+6 -4
View File
@@ -1,18 +1,20 @@
module Dodge.Wall.Draw where
import Dodge.Data.Wall
import ShapePicture
import Picture.Base
import ShapePicture
drawWall :: WallDraw -> Wall -> SPic
drawWall wd = case wd of
DrawForceField -> drawForceField
drawForceField :: Wall -> SPic
drawForceField wl = (mempty
drawForceField wl =
( mempty
, setLayer BloomLayer
. setDepth 20
. color (_wlColor wl)
$ thickLine 5 [a,b]
$ thickLine 5 [a, b]
)
where
(a,b) = _wlLine wl
(a, b) = _wlLine wl