Overlay: Account for mouse-look

This commit is contained in:
Bill Niblock 2024-10-16 18:04:33 -04:00
parent 5106ffc76f
commit 934cd5e819

View file

@ -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)