Generalise pathing, usable with flying creatures

This commit is contained in:
2026-04-02 19:30:44 +01:00
parent c2de804fa9
commit ff903bfb3b
19 changed files with 322 additions and 215 deletions
+1 -1
View File
@@ -6,5 +6,5 @@ import Dodge.Data.GenWorld
import RandomHelp
randC1 :: PSType
randC1 = RandPS $ takeOne $ map PutCrit $ armourChaseCrit : replicate 50 chaseCrit
randC1 = RandPS $ takeOne $ map PutCrit $ armourChaseCrit : replicate 50 hoverCrit
--randC1 = RandPS $ takeOne $ map PutCrit [hoverCrit]
+1 -5
View File
@@ -176,11 +176,7 @@ mvCr p rot = (crPos . _xy .~ p) . (crOldPos . _xy .~ p) . (crDir .~ rot)
mvFS :: Point2 -> Float -> ForegroundShape -> ForegroundShape
mvFS p a = (fsDir +~ a) . (fsPos %~ ((p +) . rotateV a))
plMachine ::
Machine ->
Maybe Item ->
GenWorld ->
(Int, GenWorld)
plMachine :: Machine -> Maybe Item -> GenWorld -> (Int, GenWorld)
plMachine mc mitm gw =
( mcid
, gw