Overlay: Account for mouse-look
This commit is contained in:
parent
5106ffc76f
commit
934cd5e819
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@
|
||||||
(- x dx) (+ y by dy)))
|
(- x dx) (+ y by dy)))
|
||||||
(set dx (+ dx bb))))
|
(set dx (+ dx bb))))
|
||||||
|
|
||||||
(fn overlay []
|
(fn overlay [dx dy]
|
||||||
|
(love.graphics.translate dx (- dy))
|
||||||
(oxygen-ui (+ (/ screen-width 2) 100) (- screen-height 100))
|
(oxygen-ui (+ (/ screen-width 2) 100) (- screen-height 100))
|
||||||
(power-ui (- (/ screen-width 2) 100) (- screen-height 100))
|
(power-ui (- (/ screen-width 2) 100) (- screen-height 100))
|
||||||
(love.graphics.setColor 1 1 1)
|
(love.graphics.setColor 1 1 1)
|
||||||
|
|
Loading…
Reference in a new issue