From 934cd5e81924f99ab87d526cca78026c4507e7af Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Wed, 16 Oct 2024 18:04:33 -0400 Subject: [PATCH] Overlay: Account for mouse-look --- overlay.fnl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overlay.fnl b/overlay.fnl index d10c60b..35a0263 100644 --- a/overlay.fnl +++ b/overlay.fnl @@ -54,7 +54,8 @@ (- x dx) (+ y by dy))) (set dx (+ dx bb)))) -(fn overlay [] +(fn overlay [dx dy] + (love.graphics.translate dx (- dy)) (oxygen-ui (+ (/ screen-width 2) 100) (- screen-height 100)) (power-ui (- (/ screen-width 2) 100) (- screen-height 100)) (love.graphics.setColor 1 1 1)