Add general smooth scrolling, move camera into world
This commit is contained in:
@@ -28,8 +28,8 @@ creatureDisplayText w cr =
|
||||
cr
|
||||
where
|
||||
lw = w ^. cWorld . lWorld
|
||||
campos = w ^. cWorld . cwCam . camViewFrom
|
||||
theScale = 0.15 / (w ^. cWorld . cwCam . camZoom)
|
||||
campos = w ^. wCam . camViewFrom
|
||||
theScale = 0.15 / (w ^. wCam . camZoom)
|
||||
cpos = _crPos cr
|
||||
v = cpos -.- campos
|
||||
(V2 x y) = campos +.+ v +.+ _crRad cr *.* normalizeV v
|
||||
|
||||
Reference in New Issue
Block a user