Record aim position in LWorld
This commit is contained in:
@@ -215,7 +215,7 @@ drawWallsNearYou w = concat $ do
|
||||
|
||||
drawWallsNearCursor :: World -> Picture
|
||||
drawWallsNearCursor w =
|
||||
foldMap f $ wlsNearPoint (mouseWorldPos (_input w) (_wCam w)) w
|
||||
foldMap f $ wlsNearPoint (mouseWorldPos' (_input w) (_wCam w)) w
|
||||
where
|
||||
f wl =
|
||||
setLayer DebugLayer (color rose $ thickLine 3 [a, b])
|
||||
@@ -280,7 +280,7 @@ drawZoneNearPointCursor :: World -> Picture
|
||||
drawZoneNearPointCursor w =
|
||||
foldMap (drawZoneCol orange 50) ps
|
||||
where
|
||||
mwp = mouseWorldPos (w ^. input) (w ^. wCam)
|
||||
mwp = mouseWorldPos' (w ^. input) (w ^. wCam)
|
||||
ps = [zoneOfPoint 50 mwp]
|
||||
|
||||
drawDDATest :: World -> Picture
|
||||
@@ -289,7 +289,7 @@ drawDDATest w =
|
||||
<> setLayer DebugLayer (color yellow (line [cvf, mwp]))
|
||||
where
|
||||
cvf = w ^. wCam . camViewFrom
|
||||
mwp = mouseWorldPos (w ^. input) (w ^. wCam)
|
||||
mwp = mouseWorldPos' (w ^. input) (w ^. wCam)
|
||||
ps = zoneOfSeg 50 cvf mwp
|
||||
|
||||
drawWallSearchRays :: World -> Picture
|
||||
@@ -354,7 +354,7 @@ drawMousePosition w =
|
||||
. text
|
||||
$ shortPoint2 mwp
|
||||
where
|
||||
mwp = mouseWorldPos (w ^. input) (w ^. wCam)
|
||||
mwp = mouseWorldPos' (w ^. input) (w ^. wCam)
|
||||
|
||||
drawCoord :: Point2 -> World -> Picture
|
||||
drawCoord p w =
|
||||
|
||||
Reference in New Issue
Block a user