Add in "linear" lWorld to separate time reversable worlds

This commit is contained in:
2022-10-28 12:24:51 +01:00
parent 5f6bd43599
commit 7e790b7153
130 changed files with 827 additions and 980 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ makeFlamelet ::
makeFlamelet (V2 x y) z vel size time w =
w
& randGen .~ g
& cWorld . energyBalls
& cWorld . lWorld . energyBalls
.:~ EnergyBall
{ _ebVel = vel
, _ebColor = red
@@ -48,7 +48,7 @@ moveEnergyBall w eb
incBallAt :: Point2 -> World -> World
incBallAt p w =
w & cWorld . energyBalls .:~ theincball
w & cWorld . lWorld . energyBalls .:~ theincball
& randGen .~ g
where
(theincball, g) = runState thestate (_randGen w)
@@ -69,6 +69,6 @@ incBallAt p w =
ebFlicker :: EnergyBall -> World -> World
ebFlicker pt
| _ebTimer pt `mod` 7 == 0 =
cWorld . tempLightSources
cWorld . lWorld . tempLightSources
.:~ tlsTimeRadColPos 1 70 (0.5 *.*.* xyzV4 (_ebColor pt)) (addZ 20 $ _ebPos pt)
| otherwise = id