From ac0ba74d4a1cbd9140cbe12a582a7ef4857d9b1f Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 1 Mar 2023 07:57:22 +0000 Subject: Added a FIXME --- src/Game/Map.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Game/Map.hs b/src/Game/Map.hs index f412410..5da8133 100644 --- a/src/Game/Map.hs +++ b/src/Game/Map.hs @@ -187,6 +187,7 @@ viewport renderer (Map mapData _) vx vy vw vh = do newx = min (if fx + halfViewportWidth > mapWidth then mapWidth - vw else fx) (mapWidth - vw) newy = min (if fy + halfViewportHeight > mapHeight then mapHeight - vh else fy) (mapHeight - vh) + -- FIXME: hardcoded size of the HUD; perhaps we need to pass x, y offsets to the viewport mapRect = U.rect (-newx) (16 - newy) (newx + vw) vh -- | Render a map. -- cgit v1.2.3