Add general smooth scrolling, move camera into world
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{-# OPTIONS_GHC -Wno-unused-imports #-}
|
||||
module Dodge.TestString where
|
||||
|
||||
import Dodge.SmoothScroll
|
||||
import HelpNum
|
||||
import Dodge.Base.Coordinate
|
||||
import Geometry.Vector
|
||||
@@ -16,9 +17,10 @@ import Dodge.Data.Universe
|
||||
--import qualified Data.Map.Strict as M
|
||||
--import qualified IntMapHelp as IM
|
||||
testStringInit :: Universe -> [String]
|
||||
testStringInit u = [show $ u ^. uvWorld . input . mouseButtons
|
||||
, show $ u ^. uvWorld . input . heldPos]
|
||||
-- [show $ length $ lightsToRender (u ^. uvConfig) (u ^. uvWorld . cWorld . cwCam)
|
||||
testStringInit u = [show $ u ^. uvWorld . input . smoothScrollAmount
|
||||
, show $ getSmoothScrollValue (u ^. uvWorld . input)
|
||||
]
|
||||
-- [show $ length $ lightsToRender (u ^. uvConfig) (u ^. uvWorld . wCam)
|
||||
-- (u ^. uvWorld . cWorld . lWorld)
|
||||
-- , show a
|
||||
-- , show $ u ^. uvWorld . input . mousePos
|
||||
@@ -30,8 +32,8 @@ testStringInit u = [show $ u ^. uvWorld . input . mouseButtons
|
||||
-- w = u ^. uvWorld
|
||||
-- a = fromMaybe 0 $ do
|
||||
-- cpos <- w ^? cWorld . lWorld . creatures . ix 0 . crPos
|
||||
-- return . toClosestMultiple (pi/ 8) $ argV (mouseWorldPos (w ^. input) (w ^. cWorld . cwCam) -.- cpos)
|
||||
-- - w ^. cWorld . cwCam . camRot
|
||||
-- return . toClosestMultiple (pi/ 8) $ argV (mouseWorldPos (w ^. input) (w ^. wCam) -.- cpos)
|
||||
-- - w ^. wCam . camRot
|
||||
|
||||
--[show $ u ^? uvWorld . hud . hudElement . diSections . sssExtra . sssSelPos . _Just]
|
||||
-- [show $ fmap IM.keys $ u ^? uvWorld . hud . hudElement . subInventory . ciSections . sssSections]
|
||||
|
||||
Reference in New Issue
Block a user