Cleanup
This commit is contained in:
@@ -30,9 +30,9 @@ updateCarriage' cid cr w = \case
|
|||||||
_ -> w & tocr . crPos . _xy +~ 0.5 *^ (cr ^. crOldPos - oop) ^. _xy
|
_ -> w & tocr . crPos . _xy +~ 0.5 *^ (cr ^. crOldPos - oop) ^. _xy
|
||||||
Floating -> w
|
Floating -> w
|
||||||
Flying {_zSpeed = dz, _flyInertia = x} ->
|
Flying {_zSpeed = dz, _flyInertia = x} ->
|
||||||
w & cWorld . lWorld . creatures . ix cid . crPos . _xy +~ x *^ f (cr ^. crOldPos . _xy - oop ^. _xy)
|
w & tocr . crPos . _xy +~ x *^ f (cr ^. crOldPos . _xy - oop ^. _xy)
|
||||||
& cWorld . lWorld . creatures . ix cid . crPos . _z +~ dz
|
& tocr . crPos . _z +~ dz
|
||||||
& cWorld . lWorld . creatures . ix cid . crStance . carriage . zSpeed
|
& tocr . crStance . carriage . zSpeed
|
||||||
%~ if cr ^. crPos . _z < 17 then min 0.05 . (+0.001) else max (-0.05) . subtract 0.001
|
%~ if cr ^. crPos . _z < 17 then min 0.05 . (+0.001) else max (-0.05) . subtract 0.001
|
||||||
Boosting {} -> w
|
Boosting {} -> w
|
||||||
Falling {} ->
|
Falling {} ->
|
||||||
|
|||||||
@@ -35,12 +35,6 @@ import RandomHelp
|
|||||||
import qualified SDL
|
import qualified SDL
|
||||||
import ShortShow
|
import ShortShow
|
||||||
|
|
||||||
tocrs ::
|
|
||||||
( IM.IntMap Creature ->
|
|
||||||
Const (Endo [String]) (IM.IntMap Creature)
|
|
||||||
) ->
|
|
||||||
Universe ->
|
|
||||||
Const (Endo [String]) Universe
|
|
||||||
tocrs = uvWorld . cWorld . lWorld . creatures
|
tocrs = uvWorld . cWorld . lWorld . creatures
|
||||||
|
|
||||||
testStringInit :: Universe -> [String]
|
testStringInit :: Universe -> [String]
|
||||||
|
|||||||
Reference in New Issue
Block a user