Move toward implementing chasms

This commit is contained in:
2025-07-30 00:01:07 +01:00
parent fa377171a4
commit 210171fbc9
10 changed files with 327 additions and 317 deletions
+2 -1
View File
@@ -7,7 +7,7 @@ module Dodge.Placement.PlaceSpot (
) where
import Color
import Control.Lens
import LensHelp
import Control.Monad.State
import Data.Bifunctor
import Data.Foldable
@@ -140,6 +140,7 @@ placeSpotID' ps pt w = case pt of
PutUsingGenParams f ->
let (w', pt') = f w
in placeSpotID' ps pt' w'
PutChasm ps' -> (0, w & cWorld . chasms .:~ map doShift ps')
where
p@(V2 px py) = _psPos ps
p' = V3 px py 0